Chapter 3. Simple Active Debugging
Debugging Line by Line
Breakpoints
The Variable Pane
Fixing a Running Program
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 ...
Get Xcode 3 Unleashed 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.