Studio › Manual › Debug and performance

Debugging on Studio Runtime

When the project's run target is Studio Runtime (Beta), Debug (F5) and Profile (⌥⇧F6) run the debug or timed copy on Studio Runtime on this Mac. Nothing is built, so a run starts in a second or two. The game opens in its own window.

  • The same on every runtime: breakpoints, conditions, hit counts and logpoints, Pause, Step Over, Into and Out, the call stack with locals, self, other and globals, watches and Set Value, the instance list and room map, the game's output in the Output tab, and Break on Error stopping on the failing line.
  • Only on Studio Runtime: its own counts of what it draws. The Performance view adds draw calls, batches and textures (and their memory) to the graphs. Batches lists the last frame's batches: where each drew (the window or a surface), the texture it sampled, its blend mode, shader and vertices, and why it began (a texture, blend, shader or target change). The Textures list shows every texture Studio Runtime holds, its size and memory, and whether the last frame used it. GameMaker's runtimes don't give a game these numbers.
  • Memory on Studio Runtime is the whole game's memory on this Mac, textures included.
  • Profile on Studio Runtime times every event (and every function with Time Script Functions Too), as on GameMaker. Each room's report adds its batches, draw calls, textures and memory, and the findings name the batches a frame and what began them, measured rather than estimated.
  • The Raspberry Pi, phones and the browser still debug with GameMaker's runtimes: choose them in the device menu.

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