basic.debugger.b

Command/BASIC: Debugger, Releases: AP, R83, and AP 6.0 FlashBASIC

Sets breakpoint condition.

Syntax

{Flash.routine.name:}b {Flash.routine.name:}b variable operator variable {Flash.routine.name:}b variable operator numeric.literal {Flash.routine.name:}b variable operator 'literal.string' {Flash.routine.name:}b variable {Flash.routine.name:}b $operator line.number

Description

establishes a 'breakpoint' condition in the break point table, which causes the program to enter the FlashBASIC or Pick/BASIC the debugger when the condition defined in the breakpoint expression is met.

The valid comparative operators are >,<, and =.

A '+' (plus) character is displayed for each breakpoint successfully entered into the table until the table is full. In FlashBASIC, there is no limit to the number of table entries.

Note that the spaces between the arguments in the syntax are there for readability; they are NOT allowed when composing breakpoints.

Once a breakpoint is placed in the table, the debugger is entered each time the breakpoint is met.

Note that the syntax form, 'bvariable', is only supported in Advanced Pick releases with FlashBASIC. It breaks into the debugger each time the specified variable changes.

Example

run bp fred (d
*E1
*b$=5

This sets a break point on line 5. The break point remains until execution is
complete, or it is manually removed.

*sally:b

When running FlashBASIC, this command will set a breakpoint that will cause
execution to pause every time the subroutine 'sally' is entered.

See Also

Command Name Type Description
system.debugger.k Command Kills breakpoint.
basic.debugger.d Command Displays trace and break table.
basic.debugger.k Command Kills breakpoint.
basic.debug Statement Invokes Pick/BASIC debugger.
basic.debugger.overview Introductory facilitates the debugging of new Pick/BASIC programs and the maintenance of existing Pick/BASIC programs.
basic.debugger.n Command Executes through 'n' breakpoints before stopping.
basic.debugger.t Command Establishes trace table entry.
basic.debugger.variable.references Command References string and array variables.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.