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 an Interactive Story App with Swift 2 Creating the User Interface Programmatically Page Controllers

Nikita Voloboev
Nikita Voloboev
4,816 Points

Does not run, gives 'Thread 1: breakpoint 1.3' error and I don't know why

Here is the error I get when I try to run the programme after following the instructions on the video : http://i.imgur.com/CmDWvg1.png

I really don't know why it does not run and give this issue. Also it doesn't seem to find the 'PageController' class when selection in the inspection window for the view.

Thank you for any help.

4 Answers

Michael Hulet
Michael Hulet
47,913 Points

It's not an issue, it's just stopping where you asked it to. Do you see those blue arrows in the sidebar? Those are called "breakpoints", and they'll stop your code when it hits where it is so you can jump in and take a peek at things like what variables have what values. They're super useful for when you're trying to figure out what's going wrong with your app, but you don't want them on when you want your app to just run. You can right click on them and hit either "Delete Breakpoint" or "Disable Breakpoint", and your code shouldn't stop

Nikita Voloboev
Nikita Voloboev
4,816 Points

Hey,

Thank you. I think that should work, can I also ask why does this give an error : http://i.imgur.com/jIDzLzB.png

It is literally the same code that is on the video. :|

Michael Hulet
Michael Hulet
47,913 Points

Just set the first line of that initializer to self.page = nil and call it a day

Michael Hulet
Michael Hulet
47,913 Points

What version of Xcode are you running? If you right click (or click with 2 fingers, if you're on a trackpad), you should see this popup menu:

Popup menu

Michael De La Cruz
Michael De La Cruz
10,800 Points

actually I found the options but i have tried both and i am still getting the same thread issue error

Michael Hulet
Michael Hulet
47,913 Points

If it says it's stopping at a breakpoint, that's what it's doing, and you should be able to make it not stop by doing that. Otherwise, it's an actual crash and a different problem

Michael De La Cruz
Michael De La Cruz
10,800 Points

Also when I do delete/disable it, it still takes me to like thread 2 or thread 3 and those can't even be right clicked. Sorry that I cannot provide image of it.

Michael Hulet
Michael Hulet
47,913 Points

You can upload a screenshot to a site like postimg.org, then copy the Direct Link it gives you, then come back to Treehouse and paste in that link like this: ![](https://postimg.org/your_link_here)

Michael De La Cruz
Michael De La Cruz
10,800 Points

Here it is, not sure if the screenshot worked..

Michael De La Cruz
Michael De La Cruz
10,800 Points

this happens when i right click and disable/delete the breakpoint on view controller..

Michael Hulet
Michael Hulet
47,913 Points

You can press ⌘-7 to see all the breakpoints you have set, and from there, you can disable/delete them