07.43 Setting a Breakpoint in the Call Stack Window

DEFAULT

Ctrl+Alt+C

VISUAL BASIC 6

Ctrl+Alt+C; Ctrl+L

VISUAL C# 2005

Ctrl+Alt+C; Ctrl+D, Ctrl+C; Ctrl+D, C

VISUAL C++ 2

Ctrl+Alt+C; Ctrl+K; Alt+6

VISUAL C++ 6

Ctrl+Alt+C; Alt+7

VISUAL STUDIO 6

Ctrl+Alt+C

WINDOWS

Alt,D, W, C

MENU

Debug | Toggle Breakpoint

COMMAND

Debug.CallStack

VERSIONS

2005, 2008, 2010

CODE

vstipDebug0008

Did you know that breakpoints can be set inside the Call Stack window? This tip shows how to do it.

First, set a breakpoint deep in series of calls to get a nice call stack.

Note

If you don’t have a call stack handy, just make several methods called One, Two, Three, and so forth and have them call each other, as I have done in these examples.

Run your code, and let it stop at the breakpoint. ...

Get Coding Faster: Getting More Productive with Microsoft® Visual Studio® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.