Please use the Apache issue tracking system for new NetBeans issues ( !!

Bug 90133

Summary: [Study][DB-1] Running multiple debugging sessions accidentally
Product: debugger Reporter: jrojcek <jrojcek>
Component: CodeAssignee: issues <>
Status: STARTED --- QA Contact: issues <>
Priority: P2 CC: zgursky
Version: 6.x   
Target Milestone: 6.x   
Hardware: All   
OS: All   
Whiteboard: sessions PLAN
Issue Type: ENHANCEMENT Exception Report:
Bug Depends on:    
Bug Blocks: 66652    

Description jrojcek 2006-11-28 08:48:18 UTC
Several participants ran multiple debugging session accidentally. They either hadn't noticed that the 
current session was still running or they expected that the debug project action would restart the 
current session. They ended up with multiple tabs of program output and debugger console in Output 
window which was very confusing.

3 participants encountered this problem

Should we ask the user what to do if there's multiple debugging sessions running: restart the existing 
session or start a new one?
Or maybe introduce an explicit action that would start a new session. The "Run Main Project" would 
always do the restart.
Comment 1 Martin Entlicher 2006-12-02 00:24:55 UTC
See also issue #66652. IMHO it's a good idea to act like continue instead of
starting a new debugger session for the same thing.
Comment 2 Martin Entlicher 2007-05-17 13:49:05 UTC
We should resolve this into M10 (till feature freeze).

Originally I thought that a dialog would be a good solution. But not only that I
do not see a handy place in the code where the dialog could be opened at, we
should also consider issue #66652 - specifically I mean:
 1) When program is running, F5 means continue
 2) When program isn't, F5 means start debug

So what if F5 works as proposed above and CTRL-F5 is used then to force to start
a new debug session, despite one is already running?
But then we need two actions, like: "Debug Main Project (CTRL-F5)" and "Debug
Main Project or Continue (F5)".
Then we have also "Debug File (CTRL-SHIFT-F5)". This should probably always
start a new debug session. But if F5 would do continue, after the program
finishes, F5 will start to debug main project, which is strange and unexpected.

Are there any ideas of what can we do about that?
Comment 3 Martin Entlicher 2007-06-14 17:41:13 UTC
Changing to enhancement and scheduling for the next release.
We did not agree on the solution yet and we would like to make bigger changes in the UI in the next release. Thus this
might be easier to solve then.
Comment 4 Martin Entlicher 2007-08-25 09:56:31 UTC
*** Issue 113760 has been marked as a duplicate of this issue. ***
Comment 5 Petr Cyhelsky 2008-04-16 15:31:02 UTC
*** Issue 66652 has been marked as a duplicate of this issue. ***
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo