This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 90056 - Deploy, Run, Debug actions should stop the debugging session
Summary: Deploy, Run, Debug actions should stop the debugging session
Status: RESOLVED DUPLICATE of bug 86990
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: issues@serverplugins
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-26 21:49 UTC by Kirill Sorokin
Modified: 2008-12-15 03:30 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kirill Sorokin 2006-11-26 21:49:02 UTC
When I debug a java ee application, I usually step through some lines of code,
locate an issue, fix the code and then choose to redeploy. The build process
starts normally but fails *at the very end*, since the server is in "suspended"
state. It would be much more convenient if the debugging session was
automatically stopped when I choose Deploy/Run/Debug.

Calling a Deploy/Run/Debug action is a conscious activity, and thus stopping the
current debugging session seems to be quite safe from the usability standpoint.

-- 
I'm working with

NetBeans IDE Dev (Build 200610231500)
1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b104
Windows XP version 5.1 running on x86
ru_RU (nb); Cp1251
Comment 1 Kirill Sorokin 2006-11-26 21:50:07 UTC
Should be reviewed by the usability team, IMO.
Comment 2 Sherold Dev 2007-08-08 12:41:28 UTC
Petr, what do you think about it?
Comment 3 Petr Pisl 2007-08-08 14:58:11 UTC
To be sure. The server is stopped in a breakpoint and the breakpoint is still active. If you try to run or debug the
application again in this situation the build fails and you get a message: "Cannot perform required operation, since the
server is currently in suspended state and thus cannot handle any requests."

If user wants to redeploy, run or debug again he has to finish debug session and then invoke Debug/Run/Undeploy and
Deploy action. He also can invoke Continue action and then invoke Debug/Run/Undeploy and Deploy action, but there is a
risk, that the server will stop on another breakpoint and will be suspended. 

So for me it seams to be reasonable that "Debug" and "Undeploy and Deploy" actions should stop debug session, redeploy
the application and start the debug session again. The "Run" action should stop debug session and redeploy the application. 
Comment 4 Vince Kraemer 2008-12-15 03:30:19 UTC
this seems very similar/related to issue 86990... I a going to mark it as a dup. 

*** This issue has been marked as a duplicate of 86990 ***