Debug (F5, the ladybug in the toolbar) builds a debug copy of the project and runs it where the device menu says: this Mac with the project's runtime, the browser, or a Raspberry Pi (see Where debug runs). Studio rewrites the copy so every line reports to Studio; your project's files are never changed.
- When the game stops at a breakpoint the editor opens at the line (green arrow) and the Debug tab (⇧⌘D) shows the call stack, variables, watches and instances.
- Continue (F5), Pause (⌥F5), Step Over (F10), Step Into (F11), Step Out (⇧F11), Stop Debugging (⇧F5).
- Break on Error: an error stops on the line that failed and shows its message, before the game quits.
- Run > Debug > Don't Debug leaves a script or object out: it runs at full speed and has no breakpoints.
- Debug builds are slower than normal builds. With nothing armed a line costs one check; a breakpoint costs only the lines of its own file, and stepping over a call costs the lines inside it a little more.
Related topics
Keys are shown as on the Mac: ⌘ Command, ⌥ Option, ⌃ Control, ⇧ Shift. Studio for Windows shows its own keys beside each menu item.