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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

NOTE<br />

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

any conditions that have been set for the breakpo<strong>in</strong>t, and the Pass column shows the pass<br />

count condition that has been set for the breakpo<strong>in</strong>t. (Breakpo<strong>in</strong>t conditions and pass count<br />

conditions are discussed later, <strong>in</strong> the section “Conditional Breakpo<strong>in</strong>ts.”) You can size the<br />

columns by dragg<strong>in</strong>g the divid<strong>in</strong>g l<strong>in</strong>e between two columns <strong>in</strong> the column header.<br />

The Pass column does not show the number of times the breakpo<strong>in</strong>t<br />

has been hit; it only shows the pass condition that you have set for the<br />

breakpo<strong>in</strong>t.<br />

The Breakpo<strong>in</strong>t list w<strong>in</strong>dow actually has two speed menus. Table 11.3 lists the speed menu<br />

items you will see if you click the right mouse button while over the Filename column. I will<br />

refer to this as the w<strong>in</strong>dow’s primary speed menu.<br />

Table 11.3. The primary Breakpo<strong>in</strong>t list speed menu.<br />

Item Description<br />

Enable Enables or disables the breakpo<strong>in</strong>t. When a breakpo<strong>in</strong>t is disabled,<br />

its glyph is grayed out <strong>in</strong> the Breakpo<strong>in</strong>t list w<strong>in</strong>dow. In the source<br />

w<strong>in</strong>dow the breakpo<strong>in</strong>t glyph is also grayed, and the breakpo<strong>in</strong>t l<strong>in</strong>e<br />

is highlighted <strong>in</strong> green to <strong>in</strong>dicate that the breakpo<strong>in</strong>t is disabled.<br />

Delete Removes the breakpo<strong>in</strong>t.<br />

View Source Scrolls the source file <strong>in</strong> the Code Editor to display the source l<strong>in</strong>e<br />

conta<strong>in</strong><strong>in</strong>g the breakpo<strong>in</strong>t. (The breakpo<strong>in</strong>t list reta<strong>in</strong>s focus.)<br />

Edit Source Places the edit cursor on the l<strong>in</strong>e <strong>in</strong> the source file where the<br />

breakpo<strong>in</strong>t is set and switches focus to the Code Editor.<br />

Properties Displays the Edit breakpo<strong>in</strong>t dialog box.<br />

TIP<br />

To quickly edit the source code l<strong>in</strong>e on which a breakpo<strong>in</strong>t is set,<br />

double-click on the breakpo<strong>in</strong>t <strong>in</strong> the Filename column of the<br />

Breakpo<strong>in</strong>t list w<strong>in</strong>dow. This is the same as choos<strong>in</strong>g Edit Source from<br />

the Breakpo<strong>in</strong>t list speed menu.<br />

The secondary speed menu can be displayed by click<strong>in</strong>g the right mouse button while the<br />

cursor is over any part of the Breakpo<strong>in</strong>t list w<strong>in</strong>dow except <strong>in</strong> the Filename column.<br />

This speed menu has items called Add, Delete All, Disable All, and Enable All. These items<br />

are self-explanatory, so I won’t bother to comment on them.<br />

399<br />

11

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

Saved successfully!

Ooh no, something went wrong!