Throw New VirtualMachine();
Today's crazy idea. For serious exception handling: throw new VirtualMachine();
...immediately spins up a new virtual machine, identical to the currently running machine, only with a debugger attached and paused on a breakpoint at the currently active line of code which caused the exception. The development/operations team are notified and given a url with which to connect to the new virtual machine. A bug is lodged in your support system. Meanwhile, execution continues essentially 'uninterrupted' in the original machine.
'Ananda Sim' on Tue, 20 May 2008 11:34:40 GMT, sez: Way to go. Can we pass the type of VirtualMachine as a parameter?
'Rik Hemsley' on Tue, 20 May 2008 11:34:43 GMT, sez: "A bug is lodged in your support system."
Ah I wondered what was digging into my pelvis. Thanks.
'Bill Pierce' on Tue, 20 May 2008 12:15:38 GMT, sez: You omitted the following line:
throw new PhysicalMachineOutTheWindow();
'Ed Poore' on Tue, 20 May 2008 12:19:49 GMT, sez: While not exactly what you want you know that VMWare allows you to run applications when you debug under VS2005? Must have Professional edition though.
'Doekman' on Tue, 20 May 2008 13:38:18 GMT, sez: Any serious problems with TimeSnapper perhaps?
;-)
'John' on Tue, 20 May 2008 16:32:19 GMT, sez: How about:
defenestrate(this);
'Joseph Cooney' on Thu, 22 May 2008 02:20:57 GMT, sez: Not sure what you mean Ed re: "VMWare allows you to run applications when you debug under VS2005" - but you can remotely launch processes on remote machines (even virtual ones) and debug them under VS 2005/2008. What specific scenario does VMware cover that is not already in the box?
'Physical to Virtual' on Thu, 22 May 2008 03:34:51 GMT, sez: p2v -- that's what you're after.
'Stathis Sideris' on Sat, 24 May 2008 14:05:56 GMT, sez: Intereseting idea, lisp already does this: http://gigamonkeys.com/book/beyond-exception-handling-conditions-and-restarts.html
|