<br><br><div class="gmail_quote">On Tue, Aug 25, 2009 at 3:54 PM, David Farber <span dir="ltr">&lt;<a href="mailto:dfarber@numenor.com">dfarber@numenor.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
On Aug 25, 2009, at 2:28 PM, Eliot Miranda wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
One of the things the headless support in VW allows which is quite nice is taking a shapshot which can then be restarted in a headless mode for debugging.<br>
</blockquote>
<br></div>
Eliot - Was this VM or image-side support?  Can you describe how it worked?</blockquote><div><br></div><div>All image side; no VM support.  I can&#39;t describe it in detail as I never worked on it.  But the basic idea is to have a switchable headless system in the image so that in deployment it runs headless and when an error occurs the error handler temporarily throws the switch, saves a snapshot and resets the switch.  When the snapshot is restarted it will come up headful because the switch was thrown before the snapshot was taken.  In the resuming snapshot the error handler then does something like an on: .. do: [:ex| self shapshotHeadful. ex pass] to allow the GUI to display the debugger.</div>
<div><br></div><div>Download VW non-commercial and play with the headless support if you want details.</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Not quite the same, but very neat:  The other day at Qwaq Craig Latta had a VM crash while running in a Parallels Linux VM under gdb.  He was able to give me a copy of the VM snapshot at the point where gdb stopped the process, giving me the opportunity to debug the live app at my leisure.  A cool idea.<br>

</blockquote>
<br></div>
In other words, he was already running the Qwaq VM under gdb, so when the Qwaq VM crashed (and left him at a gdb prompt), he simply suspended the Parallels Linux VM and sent you a copy of the suspended Parallels Linux VM.  Is that right?</blockquote>
<div><br></div><div>Right.  Very nice, as the patient is on the table. </div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br><font color="#888888">
<br>
David<br>
<br>
<br>
</font></blockquote></div><br>