United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7022037 Pause when exiting if a debugger is attached on windows
JDK-7022037 : Pause when exiting if a debugger is attached on windows

Details
Type:
Enhancement
Submit Date:
2011-02-24
Status:
Closed
Updated Date:
2011-04-25
Project Name:
JDK
Resolved Date:
2011-04-25
Component:
hotspot
OS:
windows
Sub-Component:
runtime
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
hs20
Fixed Versions:
hs21 (b04)

Related Reports
Backport:

Sub Tasks

Description
When running in Visual Studio the console window is closed as soon as the debugged process ends. This makes it impossible to see the output from the process after it as ended.

                                    

Comments
SUGGESTED FIX

At the end of normal execution we can check if a debugger is present and wait for a keypress before exiting. At then end of a failed execution (assert/crash) we can execute the breakpoint instruction to catch the error in the debugger.
                                     
2011-02-24
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/da091bb67459
                                     
2011-02-28
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot/hotspot/rev/da091bb67459
                                     
2011-03-04
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-gc/hotspot/rev/da091bb67459
                                     
2011-03-04



Hardware and Software, Engineered to Work Together