In addition to the GDB commands, BDB enables breakpoints inside
Bigloo source code
You may use any of the GDB commands to set breakpoints
The key point is that none of these
commands know Bigloo identifiers. Setting breakpoints inside Bigloo
functions requires special BDB commands:
break FUNCTION
b FUNCTION
- Set a breakpoint at entry to the function
FUNCTION
. IF FUNCTION
is an uppercase symbol, FUNCTION
is interpreted as the name of a Bigloo
function. If FUNCTION
contains at least one lower case character it
is interpreted as the name of a C function.
tbreak FUNCTION
tb FUNCTION
- Set a temporary breakpoint at entry to the function
FUNCTION
.
Conditions may be associated with breakpoints inside debugged code.
The syntax is:
bcond BNUM EXPRESSION
- Specify
EXPRESSION
as the break condition for breakpoint number
BNUM
. EXPRESSION
is an expression that is evaluated in the
environment of the breakpoint. That is EXPRESSION
may uses local
variables. If EXPRESSION
is made of uppercase symbols, it is
interpreted as a Bigloo expression and is thus evaluated by the Bigloo
interpreter. Otherwise it is interpreted as a C expression.