next
The next
command continues running the program by executing the next
source line in the current stack frame, and then stops.
Syntax
next [
count ]
- count defines the number of lines to execute before stopping.
Usage
The next
command allows you to execute your program one line of source
code at a time. The next
command is similar to step
, but
function calls that appear within the line of code are executed without stepping into the
function code.
When the next line of code at the original stack level that was executing when you gave
the next
command is reached, execution stops.
Using a count parameter will repeat the step
command
count times.
After reaching a breakpoint, the next
command can be used to examine a troublesome section of code more closely.
n
is an alias for the next
command.
Example
(fgldb) next
5 CALL add_customer(cust_rec)
(fgldb) next
6 MESSAGE "Customer record was added"
(fgldb) next 2
8 RETURN TRUE