Request for review (S): 7022037: Pause when exiting if a debugger is attached on windows
Staffan Larsen
staffan.larsen at oracle.com
Thu Feb 24 05:49:42 PST 2011
http://cr.openjdk.java.net/~sla/7022037/webrev.00/
When running in Visual Studio the console window is closed as soon as the debugged process ends (whether it is a normal end or an assert). This makes it impossible to see the output from the process after it has ended.
Suggested fix: At the end of normal execution we can check if a debugger is present and wait for a keypress before exiting. At the end of an assert we also check if a debugger is attached and use the same method as -XX:+ShowMessageBoxOnError to catch the error in the debugger.
Thanks,
/Staffan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/attachments/20110224/de4982c9/attachment.html
More information about the hotspot-runtime-dev
mailing list