Set breakpoint preferences
You can set general breakpoint preferences to stop program execution when specific events occur.
- On the Debug menu, click Breakpoint.
- Select one or more of the following options:
|
|
Show Source
|
opens the source code at the location at which the breakpoint is set
|
Delete
|
removes the selected breakpoint from the source code`
|
Delete all
|
removes all breakpoints from the source code
|
On startup
|
stops the application before any JavaŽ code is run
|
When any exception is thrown
|
stops the application when it encounters an exception in the application, regardless of its class
|
Before garbage collection
|
stops the application before the virtual machine performs a garbage collection
|
After garbage collection
|
stops the application after the virtual machine performs a garbage collection
|
You can also set breakpoints for the following panes: Locals, Static data, Watch, Threads, Locks, Processes, and Objects.
- On the View menu, click panes.
- Right-click a pane.
- Click Break when (variable) changes.
- Select a variable.
See "Managing breakpoints" for more information on setting breakpoints with iteration counts and conditions.
See "Start the BlackBerry Smartphone Simulator" for more information.
Related topic