Visual Studio debugger: Break on entering an external function?

对着背影说爱祢 提交于 2019-12-05 19:08:28

问题


With "Just My Code" turned off and a source location/server, it's easy to step into functions that are not in your code. Is there a way to set a breakpoint on one of these, though?

Basically, I want to say "when this function is called from anywhere, break and show me the source". I tried the "set function breakpoint" and entering the fully-qualified name of the function, however it said it couldn't find the function.


回答1:


I figured it out thanks to the wonderful blog post TIP: Set breakpoints without source code in Visual Studio 2005.

Even though it reports that the method wasn't found, it will still break there once the assembly is loaded (assuming you spelled the method right ;-P).



来源:https://stackoverflow.com/questions/1377382/visual-studio-debugger-break-on-entering-an-external-function

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!