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

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,595 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,595 Points

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

Chris Robinson
Chris Robinson
4,491 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() {
        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