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 .

    将打开“选项”对话框并显示“符号”页。

  3. “选项”对话框中单击“文件夹”图标。

    “符号文件(.pdb)位置”框中将出现一个光标。

  4. 键入所调试的计算机上的符号位置的目录路径名。 对于本地调试,此计算机指您的本地计算机。 对于远程调试,此计算机指远程计算机。

  5. 单击“确定”关闭“选项”对话框。

Guess you like

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