Specifications
253ADOBE FLEX 3
Building and Deploying Adobe Flex 3 Applications
The following table summarizes the commands for manipulating breakpoints with the ActionScript debugger:
The following example sets a breakpoint on the myFunc() method, which is triggered when the user clicks a
button:
(fdb) break myFunc
Breakpoint 1 at 0x401ef: file file1.mxml, line 5
(fdb) continue
Command Description
break [args]
Sets a breakpoint at the specified line or function. The argument can be a line number or func-
tion name. With no arguments, the break command sets a breakpoint at the currently
stopped line (not the currently listed line).
If you specify a line number, fdb breaks at the start of code for that line. If you specify a function
name, fdb breaks at the start of code for that function.
clear [args]
Clears a breakpoint at the specified line or function. The argument can be a line number or
function name.
If you specify a line number, fdb clears a breakpoint in that line. If you specify a function name,
fdb clears a breakpoint at the beginning of that function.
With no argument, fdb clears a breakpoint in the line that the selected frame is executing in.
Compare the delete command, which clears breakpoints by number.
commands [breakpoint]
Sets commands to execute when the specified breakpoint is encountered. If you do not
specify a breakpoint, the commands are applied to the last breakpoint.
condition bnum [expression]
Specifies a condition that must be met to stop at the given breakpoint. The fdb debugger eval-
uates expression when the bnum breakpoint is reached. If the value is true or nonzero, fdb
stops at the breakpoint. Otherwise, fdb ignores the breakpoint and continues execution.
To remove the condition from the breakpoint, do not specify an expression.
You can use conditional breakpoints to stop on all events of a particular type. For example, to
stop on every
initialize event, use the following commands:
(fdb) break UIEvent:dispatch
Breakpoint 18 at 0x16cb3: file UIEventDispatcher.as, line 190
(fdb) condition 18 (eventObj.type == 'initialize')
delete [args]
Deletes breakpoints. Specify one or more comma- or space-separated breakpoint numbers to
delete those breakpoints. To delete all breakpoints, do not provide an argument.
disable breakpoints [bp_num]
Disables breakpoints. Specify one or more space-separated numbers as options to disable
only those breakpoints.
enable breakpoints [bp_num]
Enables breakpoints that were previously disabled. Specify one or more space-separated
numbers as options to enable only those breakpoints.










