Studio › Manual › Debug and performance

Breakpoints, conditions and logpoints

  • Click left of a line number (or press F9) to add or remove a breakpoint. A breakpoint on a blank line or comment stops at the next line with code.
  • Right-click the strip for Add Conditional Breakpoint… and Add Logpoint…, or click the sliders in the Breakpoints list.
  • Condition: stop only when it is true (hp <= 0, state == "jump" && x > 100).
  • Stop from hit: 3 stops the third time the line runs, and after.
  • Log message: print x is {x} to the Output panel and keep running; {…} is filled in.
  • Breakpoints are kept with the project (.studio/debug.json) and change in the running game at once.

Keys are shown as on the Mac: ⌘ Command, ⌥ Option, ⌃ Control, ⇧ Shift. Studio for Windows shows its own keys beside each menu item.