Starting the debugger
To open the debugger
-
Do one of the following:
-
In the System Tree, highlight a target and select Debug
from the pop-up menu -
Click the Debug or Select and Debug button on the
PowerBar -
Select Run>Debug or Run>Select and Debug from the
menu bar
The Debug button opens the debugger for the current target.
The current target displays in bold in the System Tree and its
name displays in the Debug button tool tip. The Select and Debug
button opens a dialog box that lets you select the target to be
debugged. -
Views in the debugger
The debugger contains several views. Each view shows a different
kind of information about the current state of your application or the
debugging session. The following table summarizes what each view shows
and what you can do from that view.
|
View |
What it shows |
What you can do |
|---|---|---|
|
Breakpoints |
A list of breakpoints with indicators showing |
Set, enable, disable, and clear breakpoints, set |
|
Call Stack |
The sequence of function calls leading up to the |
Examine the context of the application at any |
|
Instances |
Instances of remote objects and their current |
Change the context of the debugging session to a |
|
Objects in Memory |
An expandable list of objects currently in |
View the names and memory locations of instances |
|
Source |
The full text of a script |
Go to a specific line in a script, find a string, |
|
Source Browser |
An expandable hierarchy of objects in your |
Select any script in your application and display |
|
Source History |
A list of the scripts that have been displayed in |
Select any script in the Source History and |
|
Variables |
An expandable list of all the variables in |
Select which kinds of variables are shown in the |
|
Watch |
A list of variables you have selected to watch as |
Change the value of a variable, set a breakpoint |
Changing Variable views
The default debugger layout contains a separate view for each
variable type in a stacked pane. You can combine two or more Variables
views in a single pane. For example, you might want to combine local
and global variables in a single view that you keep at the top of the
stacked pane.
To display multiple variable types in a single view
-
Display the pop-up menu for a pane that contains a Variables
view you want to change. -
Click the names of the variable types you want to
display.A check mark displays next to selected variable types. The
pop-up menu closes each time you select a variable type or clear a
check mark, so you need to reopen the menu to select an additional
variable type.When you select or clear variable types, the tab for the
pane changes to show the variable types displayed on that
pane.