Debugging
While the game plays, the buttons at the bottom of the screen pause it, run it one frame at a time, and open the debugger (๐). Everything you change in the debugger changes only the running game. Your project stays as it was.

Pause and stepโ
| Button | What it does |
|---|---|
| โธ Pause | Holds the game: nothing moves, timers and sounds stop, but the view is still drawn. Press โถ to go on. |
| โญ Step | (While paused) runs exactly one frame (1/60 s) and holds again. |
| ๐ Debugger | Opens the debugger panel: Objects, Variables, Watch and Events, and ๐ opens the Profiler. |

Objects: inspect while playingโ
The Objects tab lists everything in the running scene, children under their parents. Objects spawned during play are in the list too, and destroyed ones disappear. Type in Search to filter by name. Tap ๐ฏ, then tap the game, to select the object under your finger.
The selected object gets a yellow outline in the game, and below the list you see its values as the game is using them right now:
| Group | Values |
|---|---|
| Object | enabled, visible, tags |
| Transform | position, rotation, scale |
| Physics | velocity, body type, on ground |
| Variables | its instance variables |
| Script: name | every value its code script exports (export let speed = 4) |
| Behavior: name | the behavior's settings, and whether it is enabled |
The values update while the game runs. Change one (type a number and press Enter, or tick a box) and the game uses it at once. This is the quickest way to tune a jump height or a speed: change it while playing, and when it feels right, type the same value into the Inspector after you stop.
Values the debugger can't change (an object a script points at, a list) are shown in grey.
Variablesโ
The Variables tab shows the global variables, and the scene's own variables marked scene. You can change them while the game runs, for example to set Score to 99 and see the win screen.

Below the variables, Timelines lists every timeline of the project with a play / pause button, a scrub bar and the time, so a cutscene can be stepped through while the game runs.
Watchโ
The Watch tab keeps expressions and reads them again every moment, so you can see a value change while the game runs. Type one and press Enter (or ๏ผ); โ removes it. The list is kept per project. A value that changes flashes.
An expression is a line of script with game, find('Name'), vars (the game variables) and input available:
find('Player').position
vars.Score
game.getAllEntities().length
find('Enemy').getScript('Ai').state
A mistake shows as โ with the reason in place of the value, and the rest keep updating.
Breakpointsโ
A breakpoint makes the game pause when an event runs. In the event sheet, open an event's menu (tap its number, then tap it again) and choose Add breakpoint. A red dot shows in the event's margin. Remove breakpoint takes it away.


When the event's conditions are true while playing:
- the game pauses at the end of that frame (its actions have run, so you see what they did);
- the debugger opens with ๐ด Event 4 ยท Main events at the top, and the objects that event's conditions picked: tap one to inspect it;
- with the event sheet open beside the game (on a computer), the event is highlighted in yellow. Show opens the sheet at that event;
- โถ goes on to the next time the event runs. For an event that runs every frame, that is the next frame. Remove deletes the breakpoint.
To play on without stopping, close the debugger (โ): the game goes on with breakpoints turned off, and ๐ is crossed out in red. Opening ๐ again turns them back on.
Breakpoints belong to you, not to the game: they are kept in this browser or app only, and are never saved in the project or in an exported game.
In a code scriptโ
Tap the margin beside a line number in the code editor to put a red dot on that line. It stays in the script as you edit around it, and tapping it again removes it.
When playing, the game stops on that line. The debugger shows ๐ด Walker ยท 12 ยท Player (the script, the line and the object it runs on), the line of code, and the variables as they were just before that line ran:
| Part | What it shows |
|---|---|
| Locals | the function's parameters and the variables it has set so far |
| Script | the script's own top-level variables, its fields (export let speed) among them, and entity |
| Call stack | which function called which, the running one first. Tap a row to see that function's line and variables |
A list or an object opens with a tap (โธ) to show what is inside it.
Steppingโ
| Button | Key | What it does |
|---|---|---|
| โท Step over | F10 | to the next line of this function (a function it calls runs without stopping) |
| โ Step into | F11 | to the very next line that runs, inside a function this line calls if it calls one |
| โ Step out | Shift+F11 | on until this function has returned, to the line that called it |
| โถ Continue | F8 | on to the next breakpoint |
When the function ends and nothing of yours called it (update() is called by the engine), Step over and Step out go to the same script on the same object the next time it runs, usually the next frame. Step into goes to the next line of any script.
Watch expressions are read in the stopped line's own scope, so step * 10 or this.hp work there too. A name that isn't there (inside another function) is read in the game instead.
How it worksโ
A browser can't freeze a script half-way through, so the debugger records instead. From the breakpoint's line to the end of that frame, every line your scripts run is noted with its variables. The game then holds, and stepping walks through that record.
So:
- Variables, locals and watch values are as they were on that line. The Objects and Variables tabs show the game as it is now, at the end of the frame, with the rest of the frame's code already run.
- A watch expression is read on every recorded line. Avoid ones that change something (
count++). - Changing a value in Objects while stopped doesn't change what the recorded lines did. It counts from the next frame.
- A frame that runs more than 20,000 lines (a very long loop) is recorded up to there. Stepping past it lets the game run on.
Scripts run slower while any script has a breakpoint: every line notes where it is. Without breakpoints they run as usual.
A breakpoint added while the game plays works from the next time its function runs, if the function is written function name() { โฆ } at the top of the script (as update and start are). Code elsewhere (a class's methods, const f = () => { โฆ }, lines outside any function) stops only when there was already a breakpoint (in any script) as Play started. Removing a breakpoint works at once. A dot on a line that is not the start of a statement (a closing bracket, a line that carries on the one above) is ignored.
Events: what ran this frameโ
The Events tab lists every event whose actions ran in the last frame, in the order they ran, with the objects each one picked (Coin: Coin, Coin). Tap a row to open that event in its sheet. A frame runs all its events at once, so this is how you step through a sheet: pause, press โญ to run one frame, and read what fired and on whom, then check Variables for what changed. An event that did not pass its conditions is not listed.
It only records while the tab is open, so it costs nothing otherwise. A frame lists at most 500 events.
Profilerโ
๐ in the debugger opens the Profiler window: every frame recorded, where its time went (scripts, behaviors, events), what it drew and what the scene holds in memory.
In the debug console (๐), tap a red script error to open the script at that line, or an event error to open the event sheet at that event.