Debug in Visual Studio
From Logic Wiki
Contents
Starting to Debug
Debugging a Running Process
- Without a solution loaded you can still debug
- Attach to an existing process
- Useful when solution isn't readily available
- Accessible from the debug menu
- Source code debugging still available when attaching a process
- Start an app from command line
- Open VS and navigate Debug/Attach to process
- Find the app you started in process
- Open related source code file by using File/Open
Debugging a Solution
F5 / Debug menu etc...
Debug Windows
While debugging Debug/Windows/ menu shows which windows are available
Symbols
Auxiliary metadata about your code (Like line numbers)
To use them : Debug/Options and Settings/Symbols
Callstack and Modules window can also load symbols
Debugging .NET Framework
To debug framework itself
Debug / Options and Settings / General
check two .NET checkboxes and
in Symbols add symbol file location as http://referencesource.microsoft.com/symbols
Click "Load All Symbols"
Call Stack
To see only my calls there is an option under Options and Settings "Enable Just My code"
Stop debugger from code
Debugger.Break();