The device menu (its Runtime and Device lists) chooses where Debug runs. Breakpoints, stepping, locals, watches, Set Value, instances and Show in Room work the same everywhere.
- This Mac: GMS2 VM, GMRT VM or GMRT Native, as the project runs. Run > Debug > Compile with YYC builds GMS2 VM games with YYC instead (Xcode compiles the game; the first build takes longer). The game listens on this Mac only.
- Browser (HTML5): Studio serves the game on this Mac only and opens it in your browser; the page talks to Studio through that server. A web game stops for good after an error once you continue.
- Raspberry Pi: the game is copied to the Pi and Studio connects to it over the network.
- iPhone and iPad: the debug build runs in the Simulator on this Mac, or on a device registered to the project's team: set its Wi-Fi address with Run > Debug > Device Address… (Studio connects to it there).
- Android (phones, tablets, Quest): the debug build is a test package installed with adb; Studio reaches the game through the USB cable (USB debugging on).
- GMRT can't build rooms with instance creation code yet: move that code into the object's Create event to debug on GMRT.
Related topics
Keys are shown as on the Mac: ⌘ Command, ⌥ Option, ⌃ Control, ⇧ Shift. Studio for Windows shows its own keys beside each menu item.