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 Build a Self-Destructing Message iPhone App Using Parse.com as a Backend and Adding Users Signing Up New Users: Part 2 (PFUser)

Bug console output: (lldb)

I've been trying to figure out what is wrong with my code for over an hour now, I've watched videos and read a bunch and still have no clue why it is crashing.

The crash happens when I click the "sign up" button that leads to the signup view. Below is an image of my screen. Any help would be really appreciated.

image

3 Answers

You've hit a breakpoint. Disable your breakpoints and this should stop.

It's not crashing. It's just stopping where you asked it to stop so you can debug.

Rashii Henry
Rashii Henry
16,433 Points

Hey fernando, do you mind explaining how you knew his application hit a breakpoint from looking at the image above?

1 - there is no error on the console.log (first clue) 2 - at the green line, on the right there is Thread 1: breakpoint 1.1

The application can still crash, this looks like the exception breakpoint is on. If I recall correctly, when you have Exceptions breakpoints on, whenever your application is about to fail, it breaks so you can see what's going on before it does.

Does that make sense?

I took out all the breakpoints and still got the same error. Since I was only one stage in to the project, I started it again to not waste time (and review).

Thanks either way.

Rashii Henry
Rashii Henry
16,433 Points

I completely understand how you figured it out, but i just wanted to know how you came about your answer because its always good to know the best practices for debugging errors.