📄 debug9.htm
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="GENERATOR" content="Quadralay WebWorks Publisher Professional Edition 6.0.5">
<meta name="TEMPLATEBASE" content="book_html">
<meta name="LASTUPDATED" content="12/04/03 13:41:17">
<title>5.8 Creating watchpoints</title>
<STYLE TYPE="text/css">
<!--
span.Signal { text-transform: uppercase; font-family: Verdana }
-->
</STYLE>
</head>
<body link="#3366CC" vlink="#9999CC" text="#000000" alink="#0000CC" bgcolor="#FFFFFF"
background="images/backgrnd.gif">
<p><img src="images/stlogo.gif" width="106" height="83" align="left"
alt="logo here!"> </p>
<table width="331" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td><a href="a_userto.htm"><img src="images/navtoc.gif" width="84" height="23"
border="0" alt="TOC"> </a></td>
<td><a href="debug8.htm"><img src="images/navprev.gif" width="80" height="23"
border="0" alt="PREV"> </a></td>
<td><a href="debug10.htm"><img src="images/navnext.gif" width="83" height="23"
border="0" alt="NEXT"> </a></td>
<td><a href="a_userix.htm"><img src="images/navidx.gif" width="84" height="23"
border="0" alt="INDEX"> </a></td>
</tr>
</table>
<p><br clear="all">
</p>
<hr align="left">
<blockquote>
<h2>
<a name="1209877"> </a><font color="#003366" face="Verdana, Arial, Helvetica, sans-serif">5.8 Creating watchpoints</font>
</h2><hr>
<p>
<a name="1209878"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">The <strong>Watch</strong> window displays the watchpoints set for a task. Four tabs are provided allowing four collections of watchpoints to be monitored; each tab displays a three-column list showing the expressions to be watched in the first column, their values in the second column and the scope of the watchpoint in the third column. The expressions to be monitored may be any valid expression accepted by the command line debugger.</font>
</p>
<p>
<a name="1209996"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">To open the <strong>Watch</strong> window, do one of the following:</font>
</p>
<ul>
<p> <font size=2 face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1210000"> </a>click on <img src="images/debug16.gif" height="25" width="26">
in the <strong>Debug Windows</strong> menu, </font></p>
<p> <font size=2 face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1210001"> </a>select <strong>Watch</strong> from the <strong>View</strong> menu,</font></p>
<p> <font size=2 face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1210021"> </a>press <strong>Alt+3</strong> on the keyboard.</font></p>
</ul>
<p>
<a name="1210005"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">For more information on the <strong>Watch</strong> window, see <a href="guia39.htm#1155163"><font color="#0000ff" face="Verdana, Arial, Helvetica, sans-serif"><i>Section燗.6.12: Watch window</i></font></a>.</font>
</p>
<h3>
<a name="1209935"> </a><font color="#003366" face="Verdana, Arial, Helvetica, sans-serif">5.8.1 Adding a watchpoint for a variable</font>
</h3>
<p>
<a name="1210585"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">Symbols from the source files can be added to the <strong>Watch</strong> window in several ways:</font>
</p>
<ul>
<p> <font size=2 face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1210626"> </a>Double click on the first empty line in the <strong>Watch</strong> window and type in the variable name or expression.</font></p>
<p> <font size=2 face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1210608"> </a>Drag the variable from the <strong>Editor</strong> window and drop it in the <strong>Watch</strong> window.</font></p>
<p> <font size=2 face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1210609"> </a>Right click on the <strong>Watch</strong> window, select <strong>Add...</strong> from the <strong>Watch</strong> context menu and type in the variable name or expression.</font></p>
</ul>
<p>
<a name="1210593"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">The watchpoint is created to watch the variable in the current debugger context. See also <a href="debug10.htm#1210168"><font color="#0000ff" face="Verdana, Arial, Helvetica, sans-serif"><i>Section
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -