02.03.2014 Views

Tornado

Tornado

Tornado

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

7<br />

Debugger<br />

Display Manipulation<br />

scrollbars<br />

Whenever the amount of text in either main panel exceeds the available space,<br />

the debugger displays scrollbars to allow you to view whatever portion of<br />

either display you are interested in. As shown in Figure 7-1, you can scroll the<br />

command panel either vertically or horizontally, and you can scroll the<br />

program-display panel vertically. (Make the window wider if you need to see<br />

wider lines in your source program.)<br />

sash<br />

If you refer again to Figure 7-1, you can see that the two major portions of the<br />

debugger display are the program-display panel ➌ and the command panel ➍.<br />

As in other <strong>Tornado</strong> tools, the separator line between these two panels<br />

includes a sash ( ). The sash allows you to allocate space between the two<br />

panels. To change the amount of space each panel takes up in the overall<br />

display, drag the small square up or down with your mouse.<br />

left click<br />

Clicking the left mouse button selects the entire word under the pointer in the<br />

program-display panel (but not in the command panel). This is often useful for<br />

selecting a symbol as an argument to one of the debugger buttons.<br />

right click<br />

Clicking the right mouse button anywhere in the program-display panel sets<br />

a breakpoint on the line under the pointer.<br />

A right click on any line with an existing breakpoint (marked in the margin of<br />

the program-display panel) removes that breakpoint.<br />

left drag<br />

As with other X applications, you can drag the left mouse button over any<br />

displayed text to select it (whether as an argument to another control in the<br />

debugger, or to copy into another window).<br />

middle drag<br />

Use the middle mouse button to drag certain controls and symbols between<br />

the button bar and the program-display panel. For example, drag the pencil<br />

(using the middle button) to a particular source line, to edit that line; or drag<br />

the program-counter symbol to another source line to continue executing until<br />

that line is reached.<br />

context<br />

The debugger displays this icon in the program-display panel, at the left of the<br />

next line to be executed, each time your program stops. Drag the context<br />

7<br />

237

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

Saved successfully!

Ooh no, something went wrong!