Just my code - Visual Studio 2010

visual-studio-2010

Solution

When Just My Code is enabled, it is possible to choose Break on the Debug menu and stop execution at a location where there is no My Code to display. When that happens, no code is displayed. Additionally, if you choose a Step command, it will take you to the next line of My Code.

First try to read How to: Step Into Just My Code and then will understand what they do.

As you're saying that debugger is not running, there might be many reasons:

- You could type `Devenv.exe /SafeMode`, which starts Visual Studio in safe mode, loading only the default environment and services.

- If it does not work, you could type `Devenv.exe /resetsettings`. It restores Visual Studio to default settings. Optionally, reset the settings to the specified `.vssettings` file.

- More information about the Devenv.exe command line.

- Switch other accounts or create a new account and try it again.

- If it doesn’t work still, please uninstall Visual Studio via Add/Remove Program thoroughly and reinstall it again.

Problem

I have enabled Just My Code in the debugging options, but it says it's for managed only. When I have the debugger in the managed mode, it runs but closes straight after and I can't step into each line of code. How can I make it work?

Original source