self haltOnce and enabling the halt once in the world menu should help. That's how I debug these things on my side. Phil 2013/3/30 Ben Coman <btc@openinworld.com>
I am trying to debug a red-square-of-death for a Morph. I have found where Morph errors are handled in Morph>>fullDrawOn: where it goes... [ "stuff to draw morphs" ] on: Error do: [ :err | "stuff to draw red square" ].
In the do: block I'd like to open a debugger on the error. I see Exception has #debug, so I changed the block to... [ :err | err inspect. "stuff to draw red square" ] ...and then in the inspector I do (self debug) ...but this brings up the emergency evaluator.
Below is a contrived example that exhibits the same behaviour.
doIt on... (1 / 0. self inform: 'x'.) and of course a debugger appears. doIt on... [ 1 / 0. self inform: 'x' . ] on: Error do: [:err | err inspect ] ...and then (self debug) in the inspector you get the emergency evaluator. Anyone know how can I get the debugger to come up on 'err' in the last example?
cheers -ben