RE: Compiling and restarting tomcat
"Smith, Stacey T ERDC-ITL-MS Contractor" <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.user-interface |
|---|---|
| Message-ID | <E1BD088683EF744ABFB0ED62370BEB8B58B7D0@ERD-ML4ERD.erd.ds.usace.army.mil> |
I've figured it out, I hope this will help someone other than me when they do a search on this issue. Fixing and Continuing <outbind://3/#seealso> See Also If you find a problem while debugging, you can fix your source and then continue debugging with the changed code without restarting your program. It is not possible to use the Fix command to do the following: * Change a modifier of a field, a method, or a class * Add or remove methods or fields * Change the hierarchy of classes * Change classes that have not been loaded into the virtual machine To fix your code: 1. Modify your code. 2. From the main menu, choose Run and choose <outbind://3/images/arrow.gif> Fix. The source code is recompiled. If there are errors while compiling, nothing is changed in your program. Edit your source code as needed. Then execute the Fix command again. If there are no errors, the resulting object code is swapped into the currently executing program. However, all calls on the call stack continue running the unfixed code. To use the modified code, you must pop from the call stack any calls that contain modified code. When the calls are reentered, they use the modified code. If you have modified the currently running method, an alert box is opened. If you click the Pop Call button, the most recent call is removed from the current call stack. If you click the Leave Call button, the program executes with the original version of the code. If there is only one call in the stack, you cannot pop the call and continue. 3. Continue the program to verify that the fixed version of your code works correctly. Tip <outbind://3/images/tip.gif> The Fix command does not automatically rebuild JAR files, executable files, or similar files. You must rebuild these files if you want to debug them in a new session. -----Original Message----- From: Smith, Stacey T ERDC-ITL-MS Contractor [mailto:[email protected]] Sent: Thursday, April 14, 2005 10:01 AM To: [email protected] Subject: [nbui] Compiling and restarting tomcat I'm using Netbeans 4.0, do I have to stop and restart the application every time I make a change to the code and recompile. When I recompile, the ide does not recognize the change; unless I stop and restart the server.