Thread 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
Holger Liesegang
50,593 Points

Hi 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

Thanks, 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

Big help!

THX i solved my problem

THX i solved my problem

Michael Buss Andersen
Michael Buss Andersen
974 Points

Have you pressed the "Global Breakpoint" button on the lower left? If so, don't.

I had this issue and this silly button was pushed for me. Thanks!

MIchael Montoya
MIchael Montoya
3,222 Points

This was my problem. For those looking, make sure the small flag button under your code is not selected(turned blue).

Holger Liesegang
Holger Liesegang
50,593 Points

Please post your code and I'll take a look at it :)

Chris Robinson
Chris Robinson
4,488 Points

This was exactly the problem for me! Thanks!

i need help with mine please

class ViewController: UIViewController {

    private let apiKey = "e686d54bc02a64732e46db616dbff0f9"

    override func viewDidLoad() {
        // Do any additional setup after loading the view, typically from a nib.

        let baseURL = NSURL(string: "\(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



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