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

📄 debug10.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.9 Changing the debugger context</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="debug9.htm"><img src="images/navprev.gif" width="80" height="23"
    border="0" alt="PREV"> </a></td>
    <td><a href="debug11.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="1206842"> </a><font color="#003366"  face="Verdana, Arial, Helvetica, sans-serif">5.9 	 Changing the debugger context</font>
</h2><hr>


<p>
  <a name="1210081"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">The debugger context is divided into the following categories: Program, Task, Frame and Location. The current debugger context is indicated in ST Visual Develop by the context indicator (a green triangle, <img src="images/debug17.gif" height="13" width="11">
). The context indicator is displayed in the <strong>Editor</strong>, <strong>Callstack</strong>, <strong>Tasks</strong> and <strong>Symbols</strong> windows. The current program and task context are also shown in the status bar of the main ST Visual Develop window.</font>
</p>


<h3>
  <a name="1210158"> </a><font color="#003366"  face="Verdana, Arial, Helvetica, sans-serif">5.9.1 	 Changing the program context</font>
</h3>


<p>
  <a name="1210159"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">The program context is changed in the <strong>Symbols</strong> window (see <a href="guia45.htm#1146143"><font  color="#0000ff" face="Verdana, Arial, Helvetica, sans-serif"><i>Section燗.6.18: Symbols window</i></font></a>). </font>
</p>

<ol type="1">
<p>  <font size=2  face="Verdana, Arial, Helvetica, sans-serif"><li  value="1"><a name="1210224"> </a>Open the <strong>Symbols</strong> window, by doing one of the following:</font></p>
  <ul>
<p>    <font size=2  face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1210190"> </a>click on <img src="images/debug18.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="1210191"> </a>select <strong>Symbols</strong> from the <strong>View</strong> menu,</font></p>
<p>    <font size=2  face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1210192"> </a>press <strong>Alt+9</strong> on the keyboard.</font></p>
  </ul>
  <dl>
    <dt> <a name="1210248"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">The top left area of the <strong>Symbols</strong> window lists all of the programs in the application. There is one program for every <font size=2 face=Courier><strong>.lku</strong></font> and <font size=2 face=Courier><strong>.dbg</strong></font> file.</font>
  </dl>
<p>  <font size=2  face="Verdana, Arial, Helvetica, sans-serif"><li  value="2"><a name="1210220"> </a>If the program you require is not currently loaded, right click on the <strong>Symbols</strong> window and select <strong>Load Program</strong> from the <strong>Symbols</strong> context menu. </font></p>
  <dl>
    <dt> <a name="1210302"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">Use the <strong>Open</strong> dialog displayed to open the required program.</font>
  </dl>
<p>  <font size=2  face="Verdana, Arial, Helvetica, sans-serif"><li  value="3"><a name="1210290"> </a>Either:</font></p>
  <ul>
<p>    <font size=2  face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1210727"> </a>right click on the program to which you want to change the context and select <strong>Change to Program</strong> from the <strong>Symbols</strong> context menu, or</font></p>
<p>    <font size=2  face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1210735"> </a>double click on the program to which you want to change the context.</font></p>
  </ul>
  <dl>
    <dt> <a name="1210311"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">The debugger context is changed and the context indicator is moved to the selected program.</font>
  </dl>
</ol>

<h3>
  <a name="1210144"> </a><font color="#003366"  face="Verdana, Arial, Helvetica, sans-serif">5.9.2 	 Changing the task context</font>
</h3>


<p>
  <a name="1210325"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">The task context is changed in the <strong>Tasks</strong> window (see <a href="guia40.htm#1155224"><font  color="#0000ff" face="Verdana, Arial, Helvetica, sans-serif"><i>Section燗.6.13: Tasks window</i></font></a>). </font>
</p>

<ol type="1">
<p>  <font size=2  face="Verdana, Arial, Helvetica, sans-serif"><li  value="1"><a name="1210326"> </a>Open the <strong>Tasks</strong> window, by doing one of the following:</font></p>
  <ul>
<p>    <font size=2  face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1210357"> </a>click on <img src="images/debug19.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="1210358"> </a>select <strong>Tasks</strong> from the <strong>View</strong> menu,</font></p>
<p>    <font size=2  face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1210359"> </a>press <strong>Alt+4</strong> on the keyboard.</font></p>
  </ul>
  <dl>
    <dt> <a name="1210370"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">The <strong>Tasks</strong> window displays all of the tasks currently active in the application.</font>
  </dl>
<p>  <font size=2  face="Verdana, Arial, Helvetica, sans-serif"><li  value="2"><a name="1210382"> </a>Either:</font></p>
  <ul>
<p>    <font size=2  face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1210742"> </a>right click on the task to which you want to change the context and select <strong>Change to Task</strong> from the <strong>Tasks</strong> context menu, or</font></p>
<p>    <font size=2  face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1210748"> </a>double click on the task to which you want to change the context.</font></p>
  </ul>
  <dl>
    <dt> <a name="1210383"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">The debugger context is changed and the context indicator is moved to the selected task.</font>
  </dl>
</ol>

<h3>
  <a name="1210105"> </a><font color="#003366"  face="Verdana, Arial, Helvetica, sans-serif">5.9.3 	 Changing the frame context</font>
</h3>


<p>
  <a name="1210400"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">The frame context is changed in the <strong>Callstack</strong> window (see <a href="guia43.htm#1145749"><font  color="#0000ff" face="Verdana, Arial, Helvetica, sans-serif"><i>Section燗.6.16: Callstack window</i></font></a>). </font>
</p>

<ol type="1">
<p>  <font size=2  face="Verdana, Arial, Helvetica, sans-serif"><li  value="1"><a name="1210401"> </a>Open the <strong>Callstack</strong> window, by doing one of the following:</font></p>
  <ul>
<p>    <font size=2  face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1210405"> </a>click on <img src="images/debug20.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="1210406"> </a>select <strong>CallStack</strong> from the <strong>View</strong> menu,</font></p>
<p>    <font size=2  face="Verdana, Arial, Helvetica, sans-serif"><li ><a name="1210407"> </a>press <strong>Alt+7</strong> on the keyboard.</font></p>
  </ul>
  <dl>
    <dt> <a name="1210438"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">The <strong>Callstack</strong> window displays the callstack of the current task.</font>
  </dl>
<p>  <font size=2  face="Verdana, Arial, Helvetica, sans-serif"><li  value="2"><a name="1210409"> </a>Double click on the frame to which you want to change the context.</font></p>
  <dl>
    <dt> <a name="1210410"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">The debugger context is changed and the context indicator is displayed next to the selected frame.</font>
  </dl>
</ol>

<h3>
  <a name="1210168"> </a><font color="#003366"  face="Verdana, Arial, Helvetica, sans-serif">5.9.4 	 Changing context of a watchpoint</font>
</h3>


<p>
  <a name="1210475"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">When a watchpoint is set (see <a href="debug9.htm#1209877"><font  color="#0000ff" face="Verdana, Arial, Helvetica, sans-serif"><i>Section

⌨️ 快捷键说明

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