Request for review (S): 7022037: Pause when exiting if a debugger is attached on windows

Dmitry Samersoff Dmitry.Samersoff at oracle.com
Thu Feb 24 06:16:02 PST 2011


Staffan,

1. Is it possible to put this functionality under command line flag?

We have PauseAtStartup and I think it's better to have similar 
PauseAtShutdown than autodetect debugger.


2. It's better to create separate function for it.

-Dmitry

On 2011-02-24 16:49, Staffan Larsen wrote:
> 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
>


-- 
Dmitry Samersoff
Java Hotspot development team, SPB04
* There will come soft rains ...


More information about the hotspot-runtime-dev mailing list