After the program is compiled successfully, it will exit immediately and show thread1: breakpoint 3.1

Problem description

After the program is compiled successfully, it will exit immediately and show thread1: breakpoint 3.1

Problem solving

Breakpoint
breakpoint?Where are breakpoints used?How to set and cancel breakpoints

Online search, found that someone on CocoaChina encountered the same problem, the original is careless use of the breakpoint, the breakpoint can be canceled

Breakpoint, one of the functions of debugger, can make the program break where it needs to, so as to facilitate its analysis. You can also set a breakpoint in one debugging. Next time, just let the program automatically run to the breakpoint setting position, you can interrupt at the last breakpoint setting position, which greatly facilitates the operation and saves time

Novice Xcode run program immediately after the exit, thread1: breakpoint 2.1

Chenye277:
technical questions sent to Q & A: I know, I still have to publish questions in the forum
why does it quit when I run it, and the simulator is always black, when I press stop, the simulator can run like a mobile phone
when I want to watch the real-time data of slider, it can’t watch it
a breakpoint was found on the console. What do you mean?How to solve it

Sandpiper:
go back to chenye277’s post
this is the breakpoint when your program is running
just remove the breakpoint

Link:

http://www.cocoachina.com/bbs/read.php?tid=195481

http://baike.baidu.com/subview/278359/5135004.htm#viewPageContent

Similar Posts: