I do something similar, in my WAHtmlHaltAndErrorHandler subclass fuelOutException: exception | filename context | filename := 't3-seaside-exception-{1}.fuel' format: { ZTimestamp now format: '20010203T160506' }. context := exception signalerContext. [ FuelOutStackDebugAction serializeTestFailureContext: context toFileNamed: filename ] on: Error do: [ ]
But like Tim says, it works via a .fuel file, it does not change the image state. You then open the .fuel file in a similar image. > On 13 Nov 2017, at 15:48, Tim Mackinnon <tim@testit.works> wrote: > > Hi Sean - not sure if this is exactly what you are after, but there is a > method in the debugger that is invoked when you need to debug, you can > override this and Fuel out the debug context to a file (or I guess even a > variable in the image if you are also saving the image when it gets an > error). When the the image relaunches in a headful state you could check if > that file exists (or variable is not null) and then open a debugger on the > Fueled back in state? > > Mariano’s article gave me all of the hints for doing something like this for > PharoLamda - (although I am reading the file from S3 and then creating the > debugger in a different image) - but I could imagine you doing this for what > you want? > > If you need specific code I can dig it out for you tonight. > > Tim > >> On 12 Nov 2017, at 23:15, Sean P. DeNigris <s...@clipperadams.com> wrote: >> >> Sean P. DeNigris wrote >>> In a headless image, I'd like to do the following: if there's any error, >>> arrange to have a debugger open on the next (headful) launch, and then >>> save >>> and quit. >> >> Bump :) I can't believe no one knows how to do this! >> >> >> >> ----- >> Cheers, >> Sean >> -- >> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html >> > >