⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 debug5.htm

📁 ST20 Embedded Toolset R2.0.5用于开发基于ST20芯片机顶盒软件的开发平台,2.0.5版本,国内找不到的.在国外论坛上花了N天才找到!
💻 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.4 The Editor window debug actions</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="debug4.htm"><img src="images/navprev.gif" width="80" height="23"
    border="0" alt="PREV"> </a></td>
    <td><a href="debug6.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="1211399"> </a><font color="#003366"  face="Verdana, Arial, Helvetica, sans-serif">5.4 	 The Editor window debug actions</font>
</h2><hr>


<p>
  <a name="1211402"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif"><em>Note:	 The main features of the <strong>Editor</strong> window are described in <a href="guia34.htm#1145508"><font  color="#0000ff" face="Verdana, Arial, Helvetica, sans-serif"><i>Section燗.6.7: Editor window</i></font></a>.</em></font>
</p>

<h3>
  <a name="1206607"> </a><font color="#003366"  face="Verdana, Arial, Helvetica, sans-serif">5.4.1 	 Links with the debugger</font>
</h3>


<p>
  <a name="1206608"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">Debug actions in the <strong>Editor</strong> window provide a quick method for controlling the program's execution, for pausing the program at will, and viewing the parameters resulting from the execution. Changes in variable values can be traced with ease and related directly to their originating lines in the source file.</font>
</p>


<p>
  <a name="1217192"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">The <strong>Editor</strong> window can contain a source file from the application and breakpoints may be set at selected lines in this file to halt the program execution. Breakpoint icons are placed by the user during a typical debug process (and may also be placed automatically). </font>
</p>


<p>
  <a name="1217162"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">When an application is run, the Execution Pointer (<img src="images/debuga33.gif" height="11" width="11">
) is visible in the <strong>Editor</strong> window, highlighting the current program line. </font>
</p>


<p>
  <a name="1208820"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">Run options (for example, Go, Restart and Step Into) are entered via the <strong>Debug</strong> toolbars (see <a href="guia21.htm#1143900"><font  color="#0000ff" face="Verdana, Arial, Helvetica, sans-serif"><i>Section燗.5: The toolbars</i></font></a>) or using shortcut keys. The results of these actions (for example, the Execution Pointer position), the real values of program variables at that location, the Stack contents, and other debug data, are available in the <strong>Editor</strong> window and other windows.</font>
</p>


<p>
  <a name="1206622"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">In addition, a context indicator (<img src="images/debuga3.gif" height="13" width="11">
) may be displayed relative to the Execution Pointer. The values of program variables at the position marked by the context indicator are available, whatever the location of the Execution Pointer.</font>
</p>


<p>
  <a name="1208845"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">Finally, the <strong>Editor</strong> window context menu (available by right clicking the mouse in the <strong>Editor</strong> window) provides direct access to several debug actions. The <strong>Enter Include</strong> option is the only way to access include files in which breakpoints can then be set.</font>
</p>


<h3>
  <a name="1208846"> </a><font color="#003366"  face="Verdana, Arial, Helvetica, sans-serif">5.4.2 	 Finding source files</font>
</h3>


<p>
  <a name="1216250"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">During a debug session, ST Visual Develop attempts to find source files (for example, when stepping from one source file into another) using the available debug information. If the file cannot be found, the user is prompted to specify a location. If the user presses <strong>Cancel</strong>, the file is added to the list of ignored files, otherwise if the user provides a valid location, the path is used to search for other source files. </font>
</p>


<p>
  <a name="1216277"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">Items on the these lists can be removed in the <strong>Source Location</strong> tab of the <strong>Options</strong> dialog, see <a href="guia31.htm#1155868"><font  color="#0000ff" face="Verdana, Arial, Helvetica, sans-serif"><i>Section燗.6.4: Options dialog</i></font></a>.</font>
</p>


<h3>
  <a name="1216249"> </a><font color="#003366"  face="Verdana, Arial, Helvetica, sans-serif">5.4.3 	 Editor window debug margin</font>
</h3>


<p>
  <a name="1217009"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">The left margin of an <strong>Editor</strong> window is used for placing debugging icons. It displays enabled breakpoints, disabled breakpoints, the Execution Pointer and the context indicator.</font>
</p>


<p>
  <a name="1217010"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">The icons are placed in the debug margin next to the line of code to which they apply.</font>
</p>


<h5>
  <a name="1206627"> </a><i><font color="#003366"  face="Verdana, Arial, Helvetica, sans-serif">Breakpoint icons</font></i>
</h5>


<p>
  <a name="1206628"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif"><a href="debug5.htm#1206660"><font  color="#0000ff" face="Verdana, Arial, Helvetica, sans-serif"><i>Table

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -