0

I have an a button that has an outlet to a method in my controller.m file:

    @implementation EMHomepageController
    - (IBAction)firstButtonClick:(id)sender {
        NSLog(@"task label text = %@", self.taskLabel.text);
    }

However, when I click the button, my file opens and xcode highlights my NSLog(@"task label text = %@", self.taskLabel.text); line in green with a extra green box with text: Thread 1: breakpoint 1:1. Also, the button (in the simulator) becomes faded and unclickable. Did I do something wrong?

I'm just trying to print the text of my label in the console. Thanks for the help.

bigpotato
  • 26,262
  • 56
  • 178
  • 334
  • Why was this downvoted? I'm a beginner – bigpotato May 18 '14 at 01:49
  • I did not down vote it but really? You can't figure it out yourself? Don't you understand the meaning of `breakpoint`? – Bryan Chen May 18 '14 at 01:52
  • I up voted because at least he wrote a clear enough question that someone who *did* know breakpoints was able to provide an answer quickly. – benzado May 18 '14 at 07:01
  • Why would he know what a breakpoint is? that sort of thing is tough when you're beginning. The question is well written. @Edmund here's some useful stuff http://stackoverflow.com/a/17622571/294884 – Fattie May 18 '14 at 08:43

1 Answers1

1

This is a manually placed breakpoint. In the left margin, where the line numbers are, you should see a blue arrow. Right click it and disable/delete it and try again.

nhgrif
  • 61,578
  • 25
  • 134
  • 173