12.12.2012 Views

Teach Yourself Borland C++ in 14 Days - portal

Teach Yourself Borland C++ in 14 Days - portal

Teach Yourself Borland C++ in 14 Days - portal

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Us<strong>in</strong>g the Debugger<br />

Item Shortcut Description<br />

Inspect Alt+F5 Opens the Debug Inspect w<strong>in</strong>dow for the<br />

object under the cursor.<br />

Go To Address none Allows you to specify a specific address <strong>in</strong> the<br />

program at which program execution will<br />

resume.<br />

Evaluate/Modify none Allows you to view and/or modify a variable<br />

at runtime.<br />

Add Watch at Cursor Ctrl+F5 Adds the variable under the cursor to the<br />

Watch List.<br />

The Run item on the ma<strong>in</strong> menu has several selections that perta<strong>in</strong> to runn<strong>in</strong>g programs<br />

under the debugger. The Run menu items allow you to start a program under the debugger,<br />

to term<strong>in</strong>ate a program runn<strong>in</strong>g under the debugger, and to specify command-l<strong>in</strong>e<br />

parameters for your program, to name just a few. Some of the items found here are duplicated<br />

on the Code Editor speed menu. Table 11.2 shows the Run menu items that control<br />

debugg<strong>in</strong>g operations.<br />

Table 11.2. The Run menu’s debugg<strong>in</strong>g items.<br />

Item Shortcut Description<br />

Run F9 Compiles the program (if needed) and<br />

then runs the program under the<br />

control of the IDE debugger. Same as<br />

the Run speedbar button.<br />

Parameters none Allows you to enter command-l<strong>in</strong>e<br />

parameters for your program.<br />

Step Over F8 Executes the source code l<strong>in</strong>e at the<br />

execution po<strong>in</strong>t and pauses at the next<br />

source code l<strong>in</strong>e.<br />

Trace Into F7 Traces <strong>in</strong>to the function at the<br />

execution po<strong>in</strong>t.<br />

Trace to Next Source L<strong>in</strong>e Shift+F7 Causes the execution po<strong>in</strong>t to move to<br />

the next l<strong>in</strong>e <strong>in</strong> the program’s source<br />

code.<br />

Run to Cursor F4 Runs the program and pauses when<br />

program execution reaches the current<br />

l<strong>in</strong>e <strong>in</strong> the source code.<br />

395<br />

cont<strong>in</strong>ues<br />

11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!