What’s New for the Debugger in Visual Studio 2015

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at What's New for the Debugger.

For information about everything that’s new in Visual Studio 2015 Update 1 debugging and diagnostics, see Visual Studio 2015 Update 1 Release Notes.

For information about everything that’s new in Visual Studio 2015 RTM debugging and diagnostics, see Visual Studio 2015 Release Notes.

C++ Edit and Continue supports more features. For more information, see Edit and Continue (Visual C++).

For debugging Visual C++ access violations, a new exception dialog specifies the pointer that caused the exception. For more information, please see How Can I Debug an Access Violation? and Improvement to Debugging C++ Access Violations in Visual Studio 2015 Update 1

There are significant UI changes in the Exceptions and Breakpoints UI.

Breakpoints

In Visual Studio 2015 there is a new way to configure breakpoints, which is the Breakpoint Settings window.

Here is a summary of the main Breakpoints windows and hotkeys:

FeatureMenu LocationHotkey
New breakpoint, toggle breakpointDebug / Toggle Breakpoint

context menu in editor / Insert breakpoint

click in left margin
F9
New function breakpointDebug / New Breakpoint / Function BreakpointIn Visual Studio 2015 RTM (with no updates), use ALT + F9, B

In Visual Studio 2015 Update 1 and later, use CTRL + B
Breakpoints windowDebug / Windows / BreakpointsCTRL + ALT + B
Breakpoint Settings, Conditionscontext menu on the breakpoint / ConditionsALT + F9, C
Breakpoint Settings, Actionscontext menu on the breakpoint / ActionsNo hotkey

For more information, see the following articles:

  1. Using Breakpoints

  2. New Breakpoint Configuration Experience

  3. Breakpoint Configuration Experience

Exception Settings

The new Exception Settings window allows you to specify the kind of exception handling you want for single exceptions or categories of exceptions.

FeatureMenu LocationHotkey
Exception Settings windowDebug / Windows / Exception SettingsCTRL + ALT + E

For more information, see the following articles:

  1. Managing Exceptions with the Debugger

  2. The New Exceptions Window

Edit and Continue

In Visual Studio 2015, you can set Edit and Continue in the Tools / Options / Debugging / General page. In previous versions, these settings were in a separate options category.

Attach to Process

In Visual Studio 2015 the Attach to Process command is available only from the Debug menu. In previous version it had been available from the Tools menu as well. The CTRL + ALT + P hotkey works in all versions.

Debugging in Visual Studio

Show: