0

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?

tshepang
  • 12,111
  • 21
  • 91
  • 136
Ajay_Kumar
  • 1,381
  • 10
  • 34
  • 62
  • refer to post http://stackoverflow.com/questions/5280137/where-is-the-load-symbols-lazily-debugging-option-in-xcode4 – Cris Jan 22 '13 at 05:35

2 Answers2

1

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:

  1. a must do checklist:

    • be sure the ‘Active Device’ is properly set, ‘Active Configuration’ is set to Debug and the Target is correct, and
    • you cleaned all targets and rebuilt your app, and
    • Generate Debug Symbols is checked and Optimization Level is set to 0 in Build Settings.
  2. When you debug a Device (iPhone or iPad) and cannot set breakpoints in Xcode 4:

    • reboot the device,
    • rebuild the app and
    • run it again. The debugger will likely find the breakpoints now.
  3. On the left Navigator pane there is now a Breakpoint Navigator where all the brekpoints are listed and managed.

  4. 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.

  5. In earlier Xcode version find Xcode -> Preferences -> Debugging tab. Uncheck Load symbols lazily if checked. It seems to be dropped from Xcode 4. Notes:

    • If you do not find these bits in Xcode 4, select the project file in the Project Navigator. Select the target you like to build. Then select Build Settings->All->Levels.
Rushabh
  • 3,208
  • 5
  • 28
  • 51
0

You need to click on the button shown in yellow square :

enter image description here

Rushi
  • 4,553
  • 4
  • 33
  • 46