Looking at frames in the debugger

You can use the debugger to browse the frames on the stack. To do this, however, you have to stop your program in mid-execution. Otherwise, main() will finish executing, and there will not be any frames left to look at. To see as many frames as possible in your BeerSong program, you want to halt execution on the line that prints There are simply no more bottles of beer on the wall.

How do you do this? In main.c, find the line

 ​ ​ ​ ​p​r​i​n​t​f​(​"​T​h​e​r​e​ ​a​r​e​ ​s​i​m​p​l​y​ ​n​o​ ​m​o​r​e​ ​b​o​t​t​l​e​s​ ​o​f​ ​b​e​e​r​ ​o​n​ ​t​h​e​ ​w​a​l​l​.​\​n​"​)​;​

There are two gray columns to the left of your code. Click the wider, lighter-gray column next to this line of code to set a

Get Objective-C Programming: The Big Nerd Ranch Guide 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.