📄 c-debugger3.html
字号:
<td colspan=1 rowspan=1><div class="CellBodyC" align="center"><a name="84696"> </a><img class="figure" border="0" src="images/c-debugger41.gif"></div></td><td width="10"> </td><td colspan=1 rowspan=1><div class="CellBody"><a name="84698"> </a><kbd>ALT+3</kbd></div></td><td width="10"> </td><td colspan=1 rowspan=1><div class="CellBody"><a name="84700"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Watch</font></b></div></td><td width="10"> </td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBodyC" align="center"><a name="84702"> </a><img class="figure" border="0" src="images/c-debugger42.gif"></div></td><td width="10"> </td><td colspan=1 rowspan=1><div class="CellBody"><a name="84704"> </a><kbd>ALT+4</kbd></div></td><td width="10"> </td><td colspan=1 rowspan=1><div class="CellBody"><a name="84706"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Variables</font></b></div></td><td width="10"> </td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBodyC" align="center"><a name="84708"> </a><img class="figure" border="0" src="images/c-debugger43.gif"></div></td><td width="10"> </td><td colspan=1 rowspan=1><div class="CellBody"><a name="84710"> </a><kbd>ALT+5</kbd></div></td><td width="10"> </td><td colspan=1 rowspan=1><div class="CellBody"><a name="84712"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Registers</font></b></div></td><td width="10"> </td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBodyC" align="center"><a name="84714"> </a><img class="figure" border="0" src="images/c-debugger56.gif"></div></td><td width="10"> </td><td colspan=1 rowspan=1><div class="CellBody"><a name="84716"> </a><kbd>ALT+6</kbd></div></td><td width="10"> </td><td colspan=1 rowspan=1><div class="CellBody"><a name="84718"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Memory</font></b></div></td><td width="10"> </td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBodyC" align="center"><a name="91652"> </a><img class="figure" border="0" src="images/c-debugger57.gif"></div></td><td width="10"> </td><td colspan=1 rowspan=1><div class="CellBody"><a name="91654"> </a><kbd>ALT+7</kbd></div></td><td width="10"> </td><td colspan=1 rowspan=1><div class="CellBody"><a name="91656"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Back Trace</font></b></div></td><td width="10"> </td></tr><tr><td colspan="20"><hr class="tablerule"></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p></div></dl><dl class="margin"><dd><p class="Body"><a name="91301"> </a>When a program stops under debugger control, you can use auxiliary windows to examine local and global program variables, arguments, registers, target memory, and the execution stack. The windows can be displayed docked or free-floating (<a href="c-debugger3.html#87838">Figure 8-12</a>). When they are docked (the default), the split bars at their edges can be used to change their size. <div class="frame"><h4 class="EntityTitle"><a name="87838"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 8-12: Auxiliary Debugger Windows: Free-Floating and Docked</font></a></h4><dl class="margin"><div class="Anchor"><a name="87843"> </a><img class="figure" border="0" src="images/c-debugger38.gif"></div></dl></div></p><dd><p class="Body"><a name="87827"> </a>Buttons for the auxiliary debugger windows are on the debugger toolbar, and provide a simple means for opening and closing the windows. They are also accessible from <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Debug</font></b>><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Debug Windows</font></b>.</p></dl></dl><dl class="margin"><dd><p class="table" callout><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td valign="top" width="40"><br><img border="0" alt="*" src="icons/note.gif"></td><td><hr><div class="CalloutCell"><a name="91947"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">NOTE: </font></b></a>The windows described in this section update each time your program stops in the debugger. Each update highlights values that changed since the previous display.</div></td></tr><tr valign="top"><td></td><td><hr></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p callout></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="94052">Watch Window</a></i></h4></font><dl class="margin"><dl class="margin"><dd><div class="Item"><a name="94069"> </a><p class="table"><table border="0" cellpadding="0" cellspacing="0"><tr><td colspan="20"><hr class="tablerule"></td></tr><tr valign="middle"><th rowspan="1" colspan="1"><div class="CellHeadingC" align="center"><a name="94055"> </a><b><font face="Helvetica, sans-serif" size="-1" class="sans">Button</font></b></div></th><td width="10"> </td><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="94057"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Shortcut</font></b></div></th><td width="10"> </td><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="94059"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Debug Windows Menu Command</font></b></div></th><td width="10"> </td></tr><tr><td colspan="20"><hr class="tablerule2"></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBodyC" align="center"><a name="94064"> </a><img class="figure" border="0" src="images/c-debuggera43.gif"></div></td><td width="10"> </td><td colspan=1 rowspan=1><div class="CellBody"><a name="94066"> </a><kbd>ALT+3</kbd></div></td><td width="10"> </td><td colspan=1 rowspan=1><div class="CellBody"><a name="94068"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Watch</font></b></div></td><td width="10"> </td></tr><tr><td colspan="20"><hr class="tablerule"></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p></div></dl><dl class="margin"><dd><p class="Body"><a name="94071"> </a>The <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Watch</font></b> window displays the current values of symbols, throughout the execution of the program. The <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Watch</font></b> window has four pages, which allows you to group and display sets of symbols in any manner you find useful. </p><dd><p class="Body"><a name="87531"> </a>To select a symbol for display in the watch window, click on or highlight the symbol name in the editor, display the pop-up menu (with the right-mouse button), and select <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Add to Watch</font></b>. If you highlighted the symbols name, the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Watch</font></b> window opens, and lists the symbol and its current value. If you simply clicked on the symbol, the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Add to Watch</font></b> dialog box opens (<a href="c-debugger3.html#87539">Figure 8-13</a>). <div class="frame"><h4 class="EntityTitle"><a name="87539"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 8-13: Add to Watch Dialog Box</font></a></h4><dl class="margin"><div class="Anchor"><a name="87544"> </a><img class="figure" border="0" src="images/c-debugger39.gif"></div></dl></div> </p><dd><p class="Body"><a name="88618"> </a>Enter the name of the symbol and click <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">OK</font></b> to display the symbol and its current value in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Watch</font></b> window (<a href="c-debugger3.html#91728">Figure 8-14</a>). Use the pop-up menu or the <kbd>Delete</kbd> key to remove symbols from the window. <div class="frame"><h4 class="EntityTitle"><a name="91728"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 8-14: Debugger Watch Window</font></a></h4><dl class="margin"><div class="Anchor"><a name="91733"> </a><img class="figure" border="0" src="images/c-debugger44.gif"></div></dl></div></p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="84864">Variables Window</a></i></h4></font><dl class="margin"><dl class="margin"><dd><div class="Item"><a name="94020"> </a><p class="table"><table border="0" cellpadding="0" cellspacing="0"><tr><td colspan="20"><hr class="tablerule"></td></tr><tr valign="middle"><th rowspan="1" colspan="1"><div class="CellHeadingC" align="center"><a name="84841"> </a><b><font face="Helvetica, sans-serif" size="-1" class="sans">Button</font></b></div></th><td width="10"> </td><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="84843"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Shortcut</font></b></div></th><td width="10"> </td><th rowspan="1" colspan="1"><div class="CellHeading"><b><a name="84845"> </a><font face="Helvetica, sans-serif" size="-1" class="sans">Debug Windows Menu Command</font></b></div></th><td width="10"> </td></tr><tr><td colspan="20"><hr class="tablerule2"></td></tr><tr valign="top"><td colspan=1 rowspan=1><div class="CellBodyC" align="center"><a name="84853"> </a><img class="figure" border="0" src="images/c-debugger63.gif"></div></td><td width="10"> </td><td colspan=1 rowspan=1><div class="CellBody"><a name="84855"> </a><kbd>ALT+4</kbd></div></td><td width="10"> </td><td colspan=1 rowspan=1><div class="CellBody"><a name="84857"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Variables</font></b></div></td><td width="10"> </td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -