Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Resuming app after breakpoint crash works fine...

I'm working on building an app with some of the principles I've learned, trying to work with the ideas on my own.

I have what should be working code, and it does, it just pops a breakpoint crash. Then it works fine once I restart the app, but does stop it.

Any Idea how to troubleshoot this?

2 Answers

Click on the next to the last icon in the Navigator in Xcode:

screenshot

If you have any breakpoints listed, right click them and delete them, then try again.

That did it! I've run into this a few times, why does it happen?

You've enabled a breakpoint. A breakpoint pauses the execution of your code at a certain line in the code, so that you can inspect the app and debug it. In Xcode, you add breakpoints by clicking on line numbers in the code editor. You probably enabled one or two by accidentally clicking there.