mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-21 15:23:59 +02:00
CDT 3.0.
This commit is contained in:
parent
796081b7d5
commit
19a825436c
10 changed files with 33 additions and 77 deletions
|
@ -18,28 +18,20 @@
|
|||
application whenever the value of a given expression changes, without specifying
|
||||
where this may happen. Unlike breakpoints which are line-specific watchpoints
|
||||
are associated with files. They take effect whenever a specified condition is
|
||||
true regardless of when or where it occurred.</p>
|
||||
true regardless of when or where it occurred.
|
||||
To set a watchpoint on a global variable highlight the variable in the editor or
|
||||
select it in the outline view. </p>
|
||||
|
||||
<p>To add a watchpoint:</p>
|
||||
<p>To set a watchpoint on a global variable:</p>
|
||||
|
||||
<ol>
|
||||
<li>Click <b>Run > Add C/C++ Watchpoint</b>.</li>
|
||||
<ol>
|
||||
<li>If <b>Add C/C++ Watchpoint</b> is not listed on the Run menu, select <b>Window
|
||||
> Customize Perspective</b>.</li><li>In the Customize Perspective dialog
|
||||
box, expand <b>Other</b> in the <b>Available Items</b> list.</li><li>Select the <b>C/C++ Debug</b> check box. Click <b>OK</b>.</li>
|
||||
</ol>
|
||||
<li>In the <b>Add C/C++ Watchpoint</b> dialog box, type an expression in the <b>Expression to watch</b>
|
||||
box. The
|
||||
expression may be anything that can be evaluated inside an <samp>if</samp>
|
||||
statement.</li>
|
||||
<li>Highlight the variable in the editor or select it in the outline view.</li>
|
||||
<li>Click <b>Run > Toggle Watchpoint</b>.</li>
|
||||
<li>Do any of the following:</li>
|
||||
<ul><li>To stop execution when the watch expression is read, select the
|
||||
<b>Read</b> check box.</li>
|
||||
<li>To stop execution when the watch expression is written to, select the <b>Write</b>
|
||||
check box.</li></ul>
|
||||
<li>In the C/C++ editor, open the file that you added the watchpoint to.</li>
|
||||
<li>Click <b>OK</b>.</li>
|
||||
<li>The watchpoint appears in the <b>Breakpoints</b> view
|
||||
list.</li>
|
||||
</ol>
|
||||
|
|
|
@ -23,7 +23,7 @@ core set of debug controls. </p>
|
|||
|
||||
<ol>
|
||||
<li>In the <b>Debug</b> view, select a thread.</li>
|
||||
<li>To complete the debug session, click:</li>
|
||||
<li>To control the debug session, click:</li>
|
||||
<ul><li><b>Run > Resume</b></li>
|
||||
<li><b>Run > Suspend</b></li>
|
||||
<li><b>Run > Terminate</b></li>
|
||||
|
|
|
@ -31,9 +31,6 @@ program.</p>
|
|||
the application you want to debug.</li>
|
||||
<li>In the <b>C/C++ Application</b> box, type the name of the executable
|
||||
that you want to run.</li>
|
||||
<li>Click the <b>Debugger</b> tab.</li>
|
||||
<li>Select <b>Run program in debugger</b>.</li>
|
||||
<li>Select the <b>Stop at main() on startup</b> checkbox.</li>
|
||||
<li>Click <b>Debug</b>.</li>
|
||||
<p>The debug perspective is opened and the application window opens on
|
||||
top. The C/C++ editor window is repositioned in the perspective.</p>
|
||||
|
|
|
@ -12,23 +12,18 @@
|
|||
|
||||
<body>
|
||||
|
||||
<h1>Stepping into assembler functions</h1>
|
||||
<h1>Stepping into disassembled code</h1>
|
||||
|
||||
<p>Disassembly mode lets you can examine your program as it steps into
|
||||
functions that you do not have source code for [such as printf()]. When the
|
||||
instruction pointer enters a function for which it does not have the source, the
|
||||
function is displayed in the Assembly editor.</p>
|
||||
<p>Disassembly view lets you can examine your program as it steps into
|
||||
disassembled code. This is useful when the instruction pointer enters
|
||||
a function for which it does not have the source.
|
||||
To open the Disassembly view select <b>Window > Show View >
|
||||
Disassembly</b> menu.</p>
|
||||
|
||||
<p>When disassembly mode is disabled, the
|
||||
debugger steps over functions for which you do not have the source.</p>
|
||||
<p>To activate the insruction step mode check the <b>Instruction Stepping Mode</b> option
|
||||
on the Debug view toolbar. Debugger switches to the instruction stepping mode automatically
|
||||
when the Disassembly view has focus.</p>
|
||||
|
||||
<p>To step into assembler functions during debugging:</p>
|
||||
|
||||
<ul>
|
||||
<li>In the Debug view, right-click, and select <b>Disassembly Mode</b>.</li>
|
||||
<p>As you step Into assembler functions, the execution trace is displayed in
|
||||
the Assembly Editor.</p>
|
||||
</ul>
|
||||
<p><img border="0" src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21">
|
||||
<br>
|
||||
<a href="../concepts/cdt_c_over_cdt.htm">C/C++ Development perspective</a><br>
|
||||
|
|
|
@ -20,11 +20,11 @@ view is part of the Debug perspective.</p>
|
|||
<p>To add an expression:</p>
|
||||
|
||||
<ol>
|
||||
<li>Click <b>Run > Add Expression</b>.</li>
|
||||
<li>Type the expression that you want to evaluate. For example, (x-5)*3 ).</li>
|
||||
<li>Select <b>Add Watch Expression</b> in the context menu of the Expressions view.</li>
|
||||
<li>Type the expression that you want to evaluate. For example, (x-5)*3 .</li>
|
||||
<li><p>Click <b>OK</b>.</p><p>The expression and its value appear in the
|
||||
Expressions view. When the execution of a program is suspended, all expressions
|
||||
are reevaluated and changed values are highlighted.</p></li>
|
||||
are reevaluated.</p></li>
|
||||
</ol>
|
||||
|
||||
<p><img border="0" src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21">
|
||||
|
|
|
@ -37,14 +37,6 @@
|
|||
Hexadecimal</b>.</li></ul>
|
||||
</ol>
|
||||
|
||||
<p>To modify Registers view preferences:</p>
|
||||
|
||||
<ol>
|
||||
<li>Click <b>Window > Preferences</b>.</li>
|
||||
<li>Expand <b>Debug</b>, and click <b>Registers View</b>.</li>
|
||||
<li>Make the required changes, and click <b>OK</b>.</li>
|
||||
</ol>
|
||||
|
||||
<p><img border="0" src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21">
|
||||
<br>
|
||||
<a href="../concepts/cdt_c_over_cdt.htm">C/C++ Development perspective</a><br>
|
||||
|
|
|
@ -22,7 +22,6 @@ where it was inserted and the Breakpoints view.</p>
|
|||
<li>In the Breakpoints view, do one of the following:
|
||||
<ul>
|
||||
<li>Select the breakpoints and watchpoints you want to remove.</li>
|
||||
<li>Click <b>Edit > Select All</b>.</li>
|
||||
<li>Right-click, click <b>Select All</b>.</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
|
|
@ -33,7 +33,6 @@ function changeSize(theImage,wd,ht) {
|
|||
<img src="../images/run_debugger.png" alt="Run Debugger window">
|
||||
</li>
|
||||
<li>Select a debugger from the <b>Debugger</b> list.</li>
|
||||
<li>To be prompted to select a process from a list at run-time, select <b>Attach to running process</b>.</li>
|
||||
<li>To let your program run until you interrupt it manually, or until it
|
||||
hits a breakpoint, clear the <b>Stop at main() on startup</b> check box .</li>
|
||||
<li>Specify debug options in the <b>Debugger Options</b> box.</li>
|
||||
|
|
|
@ -13,44 +13,27 @@
|
|||
|
||||
<h1>Specifying the location of source files</h1>
|
||||
|
||||
<p>You can specify the location of source files used when debugging a C or C++
|
||||
application. By default, this information is taken from the build path of your
|
||||
project.</p>
|
||||
<p>You can specify the locations of source files used when debugging a C or C++
|
||||
application. By default, this information is taken from your project.</p>
|
||||
|
||||
<p>To specify the location of source files:</p>
|
||||
<p>To specify the locations of source files:</p>
|
||||
|
||||
<ol>
|
||||
<li>In the C/C++ Projects view, select a project.</li>
|
||||
<li>Click <b>Run > Run</b> or <b>Run > Debug</b>.</li>
|
||||
<li>In the <b>Configurations</b> box, expand <b>C/C++ Local</b>.</li>
|
||||
<li>Select a run or debug configuration.</li>
|
||||
<li>Click the <b>Source</b> tab.<p>The Generic Source Locations list shows
|
||||
the location of the project selected in the C/C++ Projects view and any
|
||||
referenced projects.</li>
|
||||
<li>To add an existing source locations:
|
||||
<li>Click the <b>Source</b> tab.</li>
|
||||
<li>To add a source container to the source locations list:
|
||||
<ul>
|
||||
<li>Click <b>Add</b> to be prompted to select a process from a list at run-time.</li>
|
||||
<li>In the <b>Add Source Location</b> dialog box, select a location type.</li>
|
||||
<li>Click <b>Next</b>.</li>
|
||||
<li>Do one of the following:</li>
|
||||
<ul><li>Select an existing project in your workspace. Click <b>Finish</b>.</li>
|
||||
<li>Specify a location in your file system. Click <b>Finish</b>.</li></ul>
|
||||
</ul>
|
||||
<li>You can change the order of source locations are used by selecting a location and clicking
|
||||
the <b>Up</b> or <b>Down</b> buttons.</li>
|
||||
<li>You can remove a source location by selecting the location and clicking the <b>Remove</b> button.</li>
|
||||
<li>To search for duplications in your source locations select the <b>Search for duplicate source files</b> checkbox.</li>
|
||||
<li>Click <b>Run</b> or do the following, as required:<ul><li>To specify the
|
||||
execution arguments that an application uses and the working directory for a run
|
||||
configuration, see <a href="cdt_t_run_arg.htm">Specifying execution arguments</a>.</li>
|
||||
<li>To set the environment variables and values to use when an application runs,
|
||||
see <a href="cdt_t_run_env.htm"> Setting environment variables</a>.</li>
|
||||
<li>To select a debugger to use when debugging an application, see
|
||||
<a href="cdt_t_run_dbg.htm">Selecting a debugger</a>.</li>
|
||||
<li>To specify where the run configuration is stored, how you access it, and
|
||||
the perspective to open when running an application, see
|
||||
<a href="cdt_t_run_com.htm">Specifying the location of the run configuration</a>.</li>
|
||||
</ul>
|
||||
<li>Click <b>Add</b> to open the <b>Add Source</b> dialog box</li>
|
||||
<li>Select a container type.</li>
|
||||
<li>Select a container from the list of available containers of the selected type.</li>
|
||||
</ul>
|
||||
<li>You can remove or modify a source container by selecting a container and clicking the <b>Remove</b> or <b>Edit</b> button.</li>
|
||||
<li>You can change the order of source containers by selecting a container and clicking
|
||||
the <b>Up</b> or <b>Down</b> buttons.</li>
|
||||
<li>To search for duplications in your source locations select the <b>Search for duplicate source files on the path</b> checkbox.</li>
|
||||
</ol>
|
||||
|
||||
<p><img border="0" src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21">
|
||||
|
|
|
@ -29,8 +29,7 @@ or disable variable values.</p>
|
|||
program handles a particular value or to speed through a loop.</p>
|
||||
|
||||
<ol>
|
||||
<li>In Variables view, right-click a variable, and select <b>Change Variable
|
||||
Value</b>.</li>
|
||||
<li>In Variables view, right-click a variable, and select <b>Change Value</b>.</li>
|
||||
<li>Type a value.</li>
|
||||
</ol>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue