visual studio - How to set a breakpoint on a method within the .net framework -


I: Want to set a breakpoint on a static method so that I'm setting up the synchronization context.

Although I can not set a breakpoint in a method, I do not have a source code.

It should be easy !, But when I try to set a breakpoint method from the breakpoint window, this method recognizes.)

< / Div>

debug, windows, click on breakpoint, click on new, break on function, System.Threading Enter SynchronizationContext.SetSynchronizationContext , and click OK.

This will give you a warning, which you should ignore. I tried to do it, and it works.


Edited by Ian Ringgaur

I had to turn off the "Enable my code only" setting in the debugging configuration.

Start Visual Studio 2008 and bring the Tools> Options> Debugging> Normal If you are running under Visual Basic Profiles, then you must select "Show all other settings" option before continuing. The lower left box of the dialog must be checked (other profiles will not have this option). Set the following settings: Turn off the "Enable my code only" setting


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -