Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Xcode how do I add a breakpoint inside a block?

I have a method which returns a block. I want to add a breakpoint inside the block. In Xcode adding a breakpoint on a line that's inside the block causes execution to pause when the method is returned and not when the block is executed. How do I add a breakpoint inside a block?

like image 457
Benedict Cohen Avatar asked Nov 15 '22 02:11

Benedict Cohen


1 Answers

I had the same difficulty, until I tried using Xcode 4's LLDB debugger (go to Product>Edit Scheme to turn it on). Perhaps you'll have better luck with it.

like image 121
Nick Hutchinson Avatar answered Dec 05 '22 10:12

Nick Hutchinson