How To Find The Line Number Of An Error

Open XCode and in the menu choose Product > Debug > Create Symbolic Break Point...

You'll see a pop up window appear. In the text field for 'Symbol', enter 'objc_exception_throw'. Then press 'Done'.

When an error occurs, this is the last method that iOS will call before the app crashes. In the break point navigator you'll be able to see the stack trace, finally.


Also, I learned that you can enter commands into the console to help you with trouble shooting. Look in the console when your app is running and you should see 'lldb' in blue letters. if you type 'expr someVar' you should be able to see the value that is stored in someVar. You can also use 'bt' to see a back trace.

Add a Comment...



Greate pieces. Keep writing such kind of information on your site. Im really impressed by your site. Hey there, You have performed a great job. I will certainly digg it and for my part recommend to my friends. I'm sure they'll be benefited from this website. - 6/02/2017