0

When I use Xcode4.1 with iOS4, it works fine. But when I use Xcode4.2 with iOS5, it locates at the main method. So I don't know where in the program caused the crash.

Verbeia
  • 4,400
  • 2
  • 23
  • 44
Patrick
  • 262
  • 3
  • 12
  • Can you at least share with us what the crash message is? – Brayden Nov 23 '11 at 07:24
  • But I am not talking about a specific crash.In a same case,Xcode4.1 can find where cause the crash,while Xcode4.2 just point to the main method. – Patrick Nov 23 '11 at 07:34

1 Answers1

2

You can set a breakpoint for all exceptoins

Command+6
Click + on the bottom left
Add Exception Breakpoint
Click Done

I am not sure why they changed the old behavior.

Jesse Black
  • 7,966
  • 3
  • 34
  • 45
  • I added this but the behaviour is the same while debugging on device, I cannot see where the crash is. Which debugger are you using? Thank you!! – Eva Madrazo Nov 23 '11 at 11:50