问题
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