VS2010 debugging - show stack window

Display the Call Stack window in break mode or run mode

  • From the Debug menu, choose Window , and then click Call Stack . or (ALT + 7)

Change the optional information displayed

  • Right-click the Call Stack window and set or clear Show <required information> .

Display non-user code frames in the Call Stack window

  • Right-click the Call Stack window and select Show External Code .

switch to another stack frame

  1. In the Call Stack window, right-click the frame whose code and data you want to view.

  2. Select Switch to Frame .

    A green arrow with a curly tail appears next to the selected frame. The execution pointer remains in the original frame, still marked with a yellow arrow. If you choose Step Into or Continue from the Debug menu , execution continues in the original frame, not the selected frame.

Display calls to and from other threads

  • Right-click the Call Stack window and select Include calls to and from other threads .

View the source code of functions on the call stack

  • In the Call Stack window, right-click the function whose source you want to view, and select Go to Source .

View disassembled code for functions on the call stack

  • In the Call Stack window, right-click the function whose disassembly you want to view, and select Go to Disassembly .

Run to a specific function from the Call Stack window

Set a breakpoint at the exit point of a function call

load module symbols

  • If you want to reload a module's symbols, right-click the frame that displays the module in the Call Stack window and choose Load Symbols .

In the Call Stack window, you can load debug symbols for code that does not currently have symbols loaded. These symbols can be .NET Framework symbols or system symbols downloaded from the Microsoft public symbol server, or symbols in a symbol path on the computer being debugged.

For more information, see How to: Use Symbol Servers and How to: Specify Symbol Paths .

load symbols

  1. In the Call Stack window, right-click a frame that does not yet have symbols loaded. This frame will be grayed out.

  2. Point to Load Symbols , and then click Microsoft Symbol Server or Symbol Path .

set symbol path

  1. Right-click any module in the Modules window.

  2. Click Symbol Settings .

    The Options dialog box opens and the Symbols page appears.

  3. Click the Folder icon in the Options dialog box.

    A cursor will appear in the Symbol File (.pdb) Location box.

  4. Type the directory pathname of the symbol location on the computer being debugged. For local debugging, this computer refers to your local computer. For remote debugging, this computer refers to the remote computer.

  5. Click OK to close the Options dialog.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324206095&siteId=291194637