I have a method that returns a block. I want to add a breakpoint inside the block. In Xcode, adding a breakpoint on the line that inside the block causes execution to pause when the method returns, and not when the block is executed. How to add a control point inside a block?
I had the same difficulty until I tried using the LCDB Xcode 4 debugger (go to Product> Edit Scheme to enable it). You might be lucky with him.
From the documentation
. GDB invoke-block, :
$ invoke-block myBlock 10 20
C, . , doSomethingWithString, :
$ invoke-block doSomethingWithString "\"this string\""