O'Reilly logo

Xcode 3 Unleashed by Fritz Anderson

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

Chapter 3. Simple Active Debugging

<feature><title>In This Chapter</title>
  • Debugging Line by Line

  • Breakpoints

  • The Variable Pane

  • Fixing a Running Program

</feature>

In Chapter 2, “Simple Workflow and Passive Debugging,” we got the Linrg command-line tool to build without errors and used the Xcode debugger passively to track down and eliminate an early crashing bug. Let’s run our tool again and see how it goes.

The Next Step

Make sure that the project is built, and then select Debug from the Run menu. Select Console from the Run menu so that we can interact with Linrg. Type some data:

1.0  2.05
nan nan nan

Well, after we enter two numbers and press Return, Linrg does not crash. It just prints nan nan nan and quits. The status bar in the Debugger and Project ...

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