C and C++ Debugging Tasks: Quick Reference

This topic describes common tasks you can perform when debugging a C or C++ project. For more detailed information, click the links in the right column.

To perform this task Follow these steps
Start a debugging session
  • To debug the main project, choose Run > Debug Main Project.
  • To debug any individual project, right-click the project and choose Debug Project.
Finish a debugging session.
  • To finish the current session, choose Run > Finish Debugger Session (Shift-F5).
  • To finish any session, open the Sessions window (Alt-Shift-6), right-click the session, and choose Finish.
Set a line breakpoint.
  • In the Source Editor, click in the left margin next to the desired line..
Set a function breakpoint.
  1. In the Source Editor, select the function on which you wish to set a breakpoint.
  2. Choose Run > New Breakpoint (Ctrl-Shift-F8).
  3. In the New Breakpoint dialog box, select the breakpoint type, set any required options, and click OK.
Modify breakpoint properties.
  1. Open the Breakpoints window (Alt-Shift-5).
  2. Right-click the breakpoint and choose Customize
  3. Change any required settings and actions and click OK.
Browse information for calls on the call stack.
  • To move down the call stack, choose Run > Stack > Make Callee Current (Ctrl-Alt-up arrow).
  • To move up the call stack, choose Run > Stack > Make Caller Current (Ctrl-Alt-down arrow).
  • To make a call current, double-click the call in the Call Stack window.

Legal Notices