[self-interest] Debugging in the presence of error blocks
ungar at me.com
Wed Sep 18 02:17:30 UTC 2013
How about middle button on the stack to turn off frame filtering?
Sent from my iPhone, tap tap
On Sep 17, 2013, at 6:35 PM, Russell Allen <mail at russell-allen.com> wrote:
> Without thinking about it too much, would
> doSomething: 'something' IfFail: [halt]
> work differently?
> On 18/09/2013, at 10:57 AM, Chris Double <chris.double at double.co.nz> wrote:
>> I'm having issues with debugging and wonder if anyone as any tips. When
>> running code that uses error blocks, like this:
>> doSomething: 'something' IfFail: [|:e| error: e ]
>> If the method has an error and calls the error block in IfFail then the
>> debugger pops up with a stack that stops at the line where the error
>> blocks is created (ie. the one above). It doesn't show a stack inside
>> 'doSomething:IfFail:' where the error actually occured.
>> Is there a way to recover this information? At the moment if I run some
>> Self code that deep inside internals it does an [|:e| error: e] block
>> then I lose the context of where the error actually occured and only get
>> the context of where it is handled.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Self-interest