gpt4 book ai didi

Windbg:在类中的所有函数上放置断点

转载 作者:行者123 更新时间:2023-12-05 00:36:29 25 4
gpt4 key购买 nike

我需要一种在类中的所有函数上放置断点的简单方法。像这样的东西 bp myDll!MyClass::*

最佳答案

你可以试试这个链接:

Windbg by Volker von Einem -> Setting multiple breakpoints via wildcard pattern

Sometimes I need a break point on a specific funtion in multiple classes. Examples are the use of templates, interfaces or inheritence.

This can be easily achived via the bm (I translate as break match).

Example:

bm /a MyModule!!CComCollectionMap*::*get_Exists*

This will set a deferred breakpoint on every function that matches the given expression. It is a good idea to check the matches upfront with the following expression:

x MyModule!!CComCollectionMap*::*get_Exists*

In order to clear all currently set break points use:

bc *

关于Windbg:在类中的所有函数上放置断点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8012790/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com