Viewing Data in the Debugger
This topic applies to:
Pro, Premium, and Ultimate
The Visual Studio debugger provides a variety of tools for inspecting and modifying the state of your program. Most of these tools function only in break mode.
DataTips are one of the most convenient tools for viewing information about the variables and objects in your program during debugging. When the debugger is in break mode, you can view the value of a variable within the current scope by placing the mouse pointer over the variable in a source window. For more information, see How to: Use DataTips.
Visualizers are a new component of the Visual Studio debugger that enable you to view the contents of an object or variable in a meaningful way. For example, you can use the HTML visualizer to view an HTML string as it would be interpreted and displayed in a browser. You can access visualizers from DataTips, the Watch window, the Autos window, the Locals window, or the QuickWatch dialog box. For more information, see Visualizers.
The following debugger windows offer important information about your program.
Assembly code generated by the compiler for your program
Threads — sequential streams of execution — created by your program
Modules (DLLs and EXEs) used by your program
Your ability to inspect the program may be limited by whether the program was built with debug information, whether the debugger has access to the source code, and whether the common language runtime Just-In-Time (JIT) compiler is tracking debug information. If the Visual Studio debugger does not find debug information for your program, it reports "no matching symbolic information found". Debug information is generated by default when you build the debug configuration of your program. In the debugger cannot find symbols, you might need to specify a symbol path. For more information, see How to: Specify Symbol Locations and Loading Behavior. To aid in debugging system calls, you can install system debug symbols. For more information, see Installing System Debug Symbols.