Click to See Complete Forum and Search --> : Can’t step into method (debug) with F11 in Visual Studio


d00_ape
February 20th, 2009, 05:07 AM
I have a project that have a class that I can’t step into a method call with F11 during debugging.
Any tip what could be wrong?

boudino
February 20th, 2009, 05:47 AM
Maybe the method is decorated with [System.Diagnostics.DebuggerNonUserCode], maybe it is a property and you have selected option "Step over properties and operators" in debug mode context menu. Try put a breakpoint into the method, it should work. You also can put following statement into the method: Debugger.Break().

toraj58
February 22nd, 2009, 06:41 AM
Check your setting in:
Tools > Options > Debugging

d00_ape
February 23rd, 2009, 01:22 AM
In some way it now work. I restarted VS about 3 times...
I didn't have any attribute on the method or its class.