Xcode checkpoints 4.5 not working

I am trying to debug C ++ code in Xcode 4.5 on iOS by running the application on connected iPad 2.

I set a regular breakpoint on my code, and when I hit it, I look at my local variables, click on the variable and select "Watch xxxxx".

The lldb console shows:

Error: Failed to create watchpoint for m_step

The same result if I try to install it manually in the console using the command:

wsv xxxxx

I get:

Error: Wathpoint creation failed (addr = 0x ..... size = 4) Error: sending the gdb watchpoint package failed

I am running a debug configuration using LLDB. Any clue, is there anything else I should check?

EDIT : here are my settings:

settingssettingssettings

+6
source share
2 answers

What iOS works on your iPad 2? Watchpoint support requires a debug server included with iOS 6, not earlier versions. It looks like the debug server running on your device does not have support for watchpoints. The debug server on the device side is fixed using the iOS build, it is not updated by Xcode. Watchpoint support in Xcode 4.5 included changes to both the debug server on the device side (in iOS 6) and lldb in Xcode on the Mac. This function requires both sides.

+6
source

Recent releases of Xcode say that Xcode 4.5 supports them.

https://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/WhatsNewXcode/00-Introduction/Introduction.html

Well ... so what? (By the way, this is a rhetorical question.) I could not also observe the observation points for Xcode 4.5! I suspect they just don't work. Nonetheless.

+1
source

All Articles