Interactive Debugging

Earlier we mentioned that RubyMotion ships with an interactive debugger. This is what appeared in our terminal after running our first app in Where It Begins: AppDelegate. Any code entered in the debugger is executed line by line, and the changes you make are reflected immediately in the simulator.

The debug console can be a really powerful tool not only for debugging but also for rapid prototyping. We can try different fonts and colors or play with the position of UI elements without recompiling the app each time. But all that versatility may make it seem daunting to actually figure out how to use the console effectively. Let’s play with our app in the console and see if we can have some fun.

Let’s rake our app one ...

Get RubyMotion 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.