Debug

Now that you’ve tested your game, I will teach you everything about debugging.

Debug Step by Step

If the previous debugging methods failed, it’s sometimes useful to use the Corona SDK debugger. It allows you to set breakpoints and inspect variables live, while the code is running in the Corona Simulator.

NOTE: This debugger is for more experienced developers, so you should expect to spend some time mastering this tool.

  • 1) From the Corona Editor (understand: from Sublime Text), add a breakpoint on the line you want the code to pause at. Place your cursor on this line and open the menu Corona Editor/Corona Debugger/Toggle Breakpoint. (Repeat the process to remove a breakpoint). You can use “Right click / Toggle Breakpoint” as well, ...

Get Create 2D Mobile Games with Corona SDK now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.