Reputation: 557
So I am using Visual Studio 2010 and developing a C# .Net Forms Application. I am at the portion of my code where I am using Delegates and I require the ability to "Step-In" to my code and to "Step-Out" of my code. Currently, the only option that I have enabled is "Step-Over", which is quite limited. Here is the list of things that I have tried to re-enable "Step-In" and "Step Out":
Does anyone have any ideas? I have tried to Google this, but have not found anything (I may not be searching for the right terms)
Here is a picture of what I am experiencing. Thank you for your help.
Upvotes: 2
Views: 93
Reputation: 941218
Resetting your UI might be advisable. If you didn't make a lot of customizations then use Tools + Options, Import/Export, Reset.
If that's too much pain then you can repair the command bar. Tools + Customize, Commands tab. Select the Toolbar Radio button and pick "Debug". Use Add Command to add the missing commands back.
Upvotes: 3
Reputation: 17010
When you start dealing with asynchronous calls and deferred code, debugging gets trickier. Some times you can manually set a debugger break and allow the JIT to "catch up" (extension methods are a great example). With others, you have to set the breakpoint in the delegated method.
The issue with the later is you have to isolate running the code, as you may delegate back to that method numerous times and you want to catch the correct run (reason to try to step in).
Without seeing exactly what you are doing, all I can give are thought hints.
Upvotes: 0