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 63652 - switching between running and debugging mode
Summary: switching between running and debugging mode
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: UI
Depends on: 141069
Blocks:
  Show dependency tree
 
Reported: 2005-09-05 15:55 UTC by pzajac
Modified: 2008-08-06 14:07 UTC (History)
1 user (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 pzajac 2005-09-05 15:55:57 UTC
[200509041800]
Scenario:
1) Run Module project
2) Debug Module project

The module was only redeployed. No debug started. User should be at least
informed that the proccess must be stopped before the debug is started.
Comment 1 Jesse Glick 2005-09-06 18:33:35 UTC
No idea how to do that.
Comment 2 pzajac 2005-09-07 12:59:17 UTC
 Implent -exitide command (cli). Use the exitide when exists lock in IDE. It
doesn't seem be so dificult. 
 
Comment 3 Jesse Glick 2005-09-07 17:47:52 UTC
Might work.
Comment 4 Jesse Glick 2008-06-19 21:55:02 UTC
Potentially simpler fix: in {Module,Suite}Actions, for COMMAND_{RUN,DEBUG} (except COMMAND_RUN in ModuleActions which is
currently bound to reload - an inconsistency reported elsewhere), check whether
project.getHelper().resolveFile(project.evaluator().evaluate("${test.user.dir}/lock")).isFile(). (Currently
SuiteProject.createEvaluator fails to define the default value for test.user.dir - should be fixed to be like
Evaluator.) If the file exists, show a warning to the user and do not run the Ant target. ModuleOperations.canRun
already does something similar (a little more verbosely than necessary due to its usage of FileObject's).
Comment 5 Jesse Glick 2008-06-20 00:44:00 UTC
Actually I will take this one.
Comment 6 Jesse Glick 2008-06-20 02:01:40 UTC
core-main #a89f924f468e
Comment 7 Quality Engineering 2008-06-20 15:56:33 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #271 build
Changeset: http://hg.netbeans.org/main/rev/4b181e90ae86
User: Jesse Glick <jglick@netbeans.org>
Log: Refinements to #72397: prevent project operations while application is running.
1. Make it work for suite projects, not just module projects.
2. Make it work for suite component and nb.org modules, not just standalone modules.
3. Fix test to use ContextAwareAction (not sure how it could ever have passed before).
4. Consolidating lock-detection logic in preparation for #63652 (prevent run while app running).