Debugging a shutdown/reboot issue?

My target device is exhibiting odd behavior in that it can execute a shutdown properly, but a restart hangs at the “Windows is shutting down…” phase. This is Windows XP SP3, and by ‘hang’ I mean that the mouse is unresponsive.

I’m remote debugging over serial, and once I issue the restart WinDbg disconnects. So my question is how can I properly debug this type of issue?

Any suggestions?

Did you disable/reset your device properly in the power down handler?

I’m actually looking for just a generic way to troubleshoot throughout the power down sequence. It’s my target unit with a fresh XP install.