Debugger Basics

The Visual Studio debugger allows you to observe the run-time behavior of your program and locate logic errors. The debugger works with all Visual Studio programming languages and their associated libraries. With the debugger, you can break execution to step through your code and evaluate variables in your application.

In This Section

Get Started with the Debugger
Explains how to use debugger features to debug your applications.

Watch a video on the Debugger
Shows how to use debugger features to debug your applications.

Navigate through Code with the Debugger
Describes how to step through code with the debugger.

Use Breakpoints
Describes what breakpoints are and how to use them.

Debugger Tips and Tricks
Learn how to increase your productivity with the debugger.

Debugger Windows
Lists the different debugger windows.

View string values in a visualizer Explains how to view string values while debugging.

Debug user code using Just My Code
Describes the Just My Code feature that lets you step over system, framework, and other non-user calls and that collapses those calls in call stack displays.

Exception Handling
Describes exceptions, how the debugger handles them and how to change that handling, how to see where the exception occurred and see the variable contents, limitations for unhandled exceptions in managed code, and fixing exceptions in native (C++) code.

Attach to Running Processes
Explains how to attach to a process that is already running.

Specify Symbol (.pdb) and Source Files
Explains how to specify symbol and source files for debugging.

Debug 64-Bit Applications
Explains how to debug 64-bit applications, and how to troubleshoot problems.

Debugger Security
Describes security practices for the debugger.

See Also

Debugger Feature Tour