Suddenly my breakpoint is not working in my Xcode when I am connecting device with Xocde. I am giving break points to debug the code on different place of function of UI events but it is not breaking at all.
What is the reason?
I searched on net and I found somebody is saying to set property to On of “Load Symbols Lazily” but where is this option?
Xcode 4 is fundamentally different from its predecessors but old errors sometimes revitalize. The orange breakpoint means that GDB can not resolve your symbols and that breakpoint will not be hit.
There is no change in setting breakpoints: open the source-code file and click in the gray gutter next to the spot where you want the debugger to stop. Look at the breakpoint-state button in the toolbar to see whether Xcode has indeed activated your breakpoints or not.
If the breakpoint is not triggered, try out these steps:
a must do checklist:
When you debug a Device (iPhone or iPad) and cannot set breakpoints in Xcode 4:
On the left Navigator pane there is now a Breakpoint Navigator where all the brekpoints are listed and managed.
In Xcode 4 a new breakpoint is local to the given workspace. If you add the project containing that breakpoint to another workspace, the breakpoint is not copied to the new one. Check it out.
In earlier Xcode version find Xcode -> Preferences -> Debugging tab. Uncheck Load symbols lazily if checked. It seems to be dropped from Xcode 4.
Notes: