O'Reilly logo

RubyMotion by Clay Allsopp

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required