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.
Summary: | Debug Code Changes not applied on save | ||
---|---|---|---|
Product: | javaee | Reporter: | bht <bht> |
Component: | Web Project | Assignee: | David Konecny <dkonecny> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | mentlicher |
Priority: | P2 | ||
Version: | 7.0 | ||
Hardware: | PC | ||
OS: | Windows Vista | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
bht
2011-03-25 22:33:33 UTC
Product Version: NetBeans IDE Dev (Build 201103150400) Java: 1.6.0_22; Java HotSpot(TM) Client VM 17.1-b03 System: Windows 2000 version 5.0 running on x86; Cp1252; en_NZ (nb) Changed to priority 2 - trying to help. I think this is quite critical for smooth development. I've reproduced the problem. As a workaround, Deploy on Save can be turned on. Sometimes it works. When it worked, I found another problem which I cannot make a testcase for before this is fixed: - Make an incompatible change eg add method and let IDE complain - deploy the app - make a compatible change eg add line to method The IDE complains as before that the change is incompatible. It should not do this because the app has since been re-deployed. It looks like the "Compile on Save" mode does not work for the Servlet project. When I do a modification and save the file, the appropriate class files does not change. Also, I did not find a debugger snippet XML file that starts the debugger on the web project. Java projects define var/cache/executor-snippets/debug.xml that starts debugger in Compile on Save mode and defines listeningcp property that is used to listen on changes of build artifacts. I did not find anything like that in the Servlet Stateless project. There's no problem in code changes application on save in standard Java projects. Therefore moving to web project for evaluation... As for the "change is incompatible" problem - this is out of scope for NetBeans. Code changes are applied by the debugger backend that is in JVM. Therefore this is a job of JVM. (In reply to comment #5) > It looks like the "Compile on Save" mode does not work for the Servlet project. > When I do a modification and save the file, the appropriate class files does > not change. This has been just fixed as issue 197067. > Also, I did not find a debugger snippet XML file that starts the debugger on > the web project. Java projects define var/cache/executor-snippets/debug.xml > that starts debugger in Compile on Save mode and defines listeningcp property > that is used to listen on changes of build artifacts. I did not find anything > like that in the Servlet Stateless project. Java projects runs app locally but in Web App case it is application server which runs in debug mode and to which the IDE attached. Correctly me if I'm wrong please. For now I'm closing as duplicate of issue 197067. Please reopen if I missed something. *** This bug has been marked as a duplicate of bug 197067 *** Without having tested anything, I am challenging the practice of closing issues by cross-referencing each other and marking them duplicates in a circular manner without actually making any changes to either of them :) (In reply to comment #8) > Without having tested anything, I am challenging the practice of closing issues > by cross-referencing each other and marking them duplicates in a circular > manner without actually making any changes to either of them :) In general terms I agree with you but not in this instance. Martin said that "Compile on Save" is not working and turning "Deploy on Save" fixes it. And that's exactly the problem which was addressed in issue 197067. In addition both of the issues were filed by single originator (that is you!) which further assures me that it is very likely the same problem. I would appreciate if you could retest it and reopen the issue if it does not work. Now let me look at dozens of other issues I have to have a look at. :-) *** This bug has been marked as a duplicate of bug 197067 *** My apologies - I overlooked that there is a patch pending in issue 197067. |