Error Topic 1: Breakpoint 1.1
So, I am getting Thread 1: Breakpoint 1.1 error in my IBAction function. The code runs without error, but when I click a button on the simulator, the simulator crashes and throws a breakpoint error. Corrupted code:
@IBAction override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject!) {
if testoEsercizio.text == "Per iniziare premi la tv" {
var viewController : SecondoSchermo = segue.destinationViewController as SecondoSchermo
viewController.stringaponte = "SI buono"
}
else {
var viewController : SecondoSchermo = segue.destinationViewController as SecondoSchermo
viewController.stringaponte = "NON buono"
}
}
I don't have much experience with stream errors and am a little frustrated trying to fix this issue. Any help is appreciated.
thank
source to share
Open the breakpoint editor in Xcode with ⌘ + 7
. From there, you can see breakpoints that are on (as indicated in blue) or off (light blue). I highly suspect you have a breakpoint in your method.
The term Thread 1: Breakpoint 1.1
is the debugger's internal name for the breakpoint (I'm assuming you're reading this from the green line of text?). This doesn't necessarily mean it's a thread error, it just tells you where it left off.
You can click ^ + ⌘ + Y
to continue or go to the debug menu and select other options. ⇧ + ⌘ + Y
displays the debug area and button bar that correlate with the actions of the Debug menu.
NTN
source to share