Debugger

BambooBasic includes an integrated debugger that allows you to step through your code, inspect variables, and track the call stack in real-time.



Setting Breakpoints

Breakpoints pause program execution at specific lines, allowing you to inspect the program state.

Note: Breakpoints can only be set on executable statements. If you click on a comment or blank line, the breakpoint will automatically move to the next executable line.



Starting a Debug Session

When debugging starts, the Debug view opens in a new tab, showing the current code position, call stack, and variables.



Debug Controls

Once execution is paused at a breakpoint, use these controls to navigate through your code:



Debug Views

The Debug panel contains several tabs to help you inspect your program:



Viewing Variables

The Variables tab shows all accessible variables when execution is paused:

Variables are sorted alphabetically within each category. Object pointers show "valid" or "null" to indicate their state.



Navigating to Source

This is particularly useful when debugging included files or stepping through library code. Press F4 to open the source file (if not already open) and navigate to the current debug line in the main editor.



Tips

Keyboard Shortcuts Summary
Key Action
F8 Start debugging
Shift+F8 Stop debugging
F9 Toggle breakpoint
F10 Step Over
F11 Step Into
Shift+F11 Step Out
F12 Continue
F4 Go to source file

BambooBasic © 2026 Michael Denathorn