4. Bdb The ``Bigloo Debugger'' Nov 1999 -- Stopping

main page

top: | Bdb The ``Bigloo Debugger'' Nov 1999

Stopping

Chapters

In addition to the GDB commands, BDB enables breakpoints inside Bigloo source code

### 4.1 Setting breakpoints

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`.

### 4.2 Break conditions

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.

This Html page has been produced by Skribe.
Last update Thu Jan 24 17:08:37 2013.