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 trialRobert Kwiat
5,349 PointsThread 1: breakpoint 1.1(Help in Xcode)
I just made some variables in Xcode an I got this "Thread 1: breakpoint 1.1" highlighted in green when I tried to run the code. Can somebody tell me why this happened and what I can do to fix it. Thanks!
5 Answers
Holger Liesegang
50,595 PointsHi Robert,
welcome to Treehouse!
it looks like you've set a breakpoint by mistake. Press CMD(?)+7 to select all breakpoints in Xcode. In the breakpoint navigator on the left you can now select and delete your breakpoints with backspace. Alternatively if you see one of these (blue) breakpoints in the gutter you can simply drag it away for deletion.
Kind Regards Holger
Michael Buss Andersen
974 PointsHave you pressed the "Global Breakpoint" button on the lower left? If so, don't.
Brian Douglas
7,933 PointsI had this issue and this silly button was pushed for me. Thanks!
MIchael Montoya
3,222 PointsThis was my problem. For those looking, make sure the small flag button under your code is not selected(turned blue).
Holger Liesegang
50,595 PointsPlease post your code and I'll take a look at it :)
Chris Robinson
4,491 PointsThis was exactly the problem for me! Thanks!
Thomas Solomon
Courses Plus Student 1,514 Pointsi need help with mine please
class ViewController: UIViewController {
private let apiKey = "e686d54bc02a64732e46db616dbff0f9"
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
let baseURL = NSURL(string: "https://api.forecast.io/forecast/\(apiKey)/")
let requestedURLToForecast = NSURL(string: "Unknown", relativeToURL: baseURL)
let sharedSession = NSURLSession.sharedSession()
let downloadTask: NSURLSessionDownloadTask = Thread 1: breakpoint 1.1 shows up here.
sharedSession.downloadTaskWithURL(requestedURLToForecast, completionHandler:
{ (location: NSURL!, response: NSURLResponse!, error: NSError!) -> Void in
println(response)
})
downloadTask.resume()
EDIT: Press edit and look what i did to achieve this effect . You can also look on your right top and check the video " Tips for asking questions" - Aurelian
Robert Kwiat
5,349 PointsRobert Kwiat
5,349 PointsThanks, but I am still confused. There are no breakpoints in the breakpoint navigator but I still have the same message. Am I still doing something wrong? Thanks, Robert
Grant Powell
2,356 PointsGrant Powell
2,356 PointsBig help!
Donny Gumelar France
Courses Plus Student 1,148 PointsDonny Gumelar France
Courses Plus Student 1,148 PointsTHX i solved my problem
Donny Gumelar France
Courses Plus Student 1,148 PointsDonny Gumelar France
Courses Plus Student 1,148 PointsTHX i solved my problem