Xcode 4.2 jumps to main.m every time after stopping simulator

后端 未结 11 1341
感情败类
感情败类 2020-12-04 09:28

This is more of a general annoyance. Every time after stopping the simulator, Xcode jumps to main.m for some reason. On the left nav, it jumps to the Debug Navigator.

<
11条回答
  •  难免孤独
    2020-12-04 10:33

    I was trying to find the offending line when my code was breaking, so what I did was:

    1. Go to where you define your breakpoints (breakpoint navigator, according to the documentation)
    2. Click in the "+" sign in the left bottom corner of the navigation area
    3. Click on Add Exception breakpoint
    4. You click Done
    5. Run your app

    Xcode shows you the offending line.

提交回复
热议问题