📄 st20run4.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:44:35">
<title>10.3 Debugging</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="st20run3.htm"><img src="images/navprev.gif" width="80" height="23"
border="0" alt="PREV"> </a></td>
<td><a href="st20run5.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="1206755"> </a><font color="#003366" face="Verdana, Arial, Helvetica, sans-serif">10.3 Debugging</font>
</h2><hr>
<p>
<a name="1206756"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">This section describes the debugging facility provided by <strong>st20run</strong>, which can be used to debug application software. A debugging process runs on the host, while the application may run on a target ST20 or a simulator.</font>
</p>
<p>
<a name="1206757"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">The debugger allows the user to explore the state of the application. The debugger is controlled by a combination of:</font>
</p>
<ul>
<p> <font size=2 face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1206758"> </a>using the graphical interface interactively,</font></p>
<p> <font size=2 face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1206759"> </a>entering options on the <strong>st20run</strong> command line, and,</font></p>
<p> <font size=2 face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1206760"> </a>using the command language either interactively or using scripts.</font></p>
</ul>
<p>
<a name="1206761"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">The debugger supports symbolic debugging of C and C++ code and assembler code. It provides the following facilities:</font>
</p>
<ul>
<p> <font size=2 face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1206762"> </a>reading and writing to memory and registers,</font></p>
<p> <font size=2 face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1206763"> </a>a breakpoint facility that allows the program to be stopped when code is about to be executed or selected variables have been written to or read from,</font></p>
<p> <font size=2 face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1206764"> </a>a single stepping facility that allows a task to be single stepped at the source level or at the assembly code level,</font></p>
<p> <font size=2 face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1206765"> </a>a stack trace facility,</font></p>
<p> <font size=2 face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1206766"> </a>the ability to display the values of variables and display memory,</font></p>
<p> <font size=2 face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1206767"> </a>a simple interpreter to enable structured C or C++ variables to be displayed,</font></p>
<p> <font size=2 face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1206768"> </a>a programmable command language that allows complex breakpoints to be set and enables debugging scripts to be generated,</font></p>
<p> <font size=2 face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1206769"> </a>support for multiple connections, multiple programs and multi-tasking applications,</font></p>
<p> <font size=2 face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1206770"> </a>profiling,</font></p>
<p> <font size=2 face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1206771"> </a>tracing.</font></p>
</ul>
<p>
<a name="1206772"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">Depending on the run-time operating system used, a facility to find the tasks of a program is also provided.</font>
</p>
<p>
<a name="1206773"> </a><font size=2 face="Verdana, Arial, Helvetica, sans-serif">The user controls, through the debugger, when the application runs and when it stops. Interactive debugging may be performed using target hardware, as shown in <a href="st20run4.htm#1206818"><font color="#0000ff" face="Verdana, Arial, Helvetica, sans-serif"><i>Figure
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -