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!

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 Simple iPhone App (iOS7) Creating a Data Collection Randomization

I get an error: Thread 1: breakpoint 1.1.

So I did everything as shown in the video, but I have come across an issue. The code is compiled and the build succeeds, but when I try to click on the Predict button, it brings me back to the code and on the line where we created an integer to hold the random value, it is highlighted green. Off to the right it says Thread 1: breakpoint 1.1.

Since I am still fairly new I have no idea what that means or how to fix it. Although that is really weird considering I used the same exact code.

2 Answers

Stone Preston
Stone Preston
42,016 Points

you have set a breakpoint in your code. to disable it, press command + y and it should disable any breakpoints and you should be able to run your code without issue (the breakpoint still exists, its just not enabled). to remove the breakpoint, find the breakpoint in your code (its the little arrow shaped thing off the left side of your code) and right click it and select delete breakpoint. you can also press command + 7 to bring up the breakpoints view and right click the breakpoint there and select delete breakpoint

Alexander Sofela
Alexander Sofela
32 Points

What is a break point