On 4 December 2011 20:46, Sean P. DeNigris <sean@clipperadams.com> wrote:
Igor Stasenko wrote
We invented a way to hack an image with Camillo. Instead of hacking VM :) THis is easy and fast.
Cool! What does it mean to "hack an image"?
When you wrote:
Igor Stasenko wrote
look at settings, there's already an option to save a new version of image before quit. if you turn this option on, then any unhandled error will open a debugger if you open an image saved in such state.
it sounded like this would only work for experiments where you were expecting you might cause an error during startup. What I'm suggesting (and I thought the OP was requesting) is a way to recover after accidentally causing an error at startup. Now there is no way to go back in and set the setting, so the image is lost, unless you hack the VM. Or is there currently another way?
yes. what we do with Camillo is to hack the image file by replacing bytecode of unwanted method with ^ self bytecode, in that way image avoiding entering code which leads to failure. To identify specific method, you can search image file for unique sequence of bytecodes :)
-- View this message in context: http://forum.world.st/startup-errors-tp3736966p4157667.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
-- Best regards, Igor Stasenko.