If you are trying to debug your code using Eclipse, MyEclipse and JBOSS, then starting JBOSS via MyEclipse (in DEBUG mode) and setting your break points in Eclipse should be enough to trigger the debugger.
However while doing tool development the JBoss 4 hot-code-replace feature (not hot deploy) may be more used. Following these steps to debug a tool:
1. Use ant script to explode tool war into your <LAMS_EAR> (<jboss>/server/default/deploy/lams.ear) folder.
2. Redirect Eclipse classes output directory to <LAMS_EAR>/<tool_explode_folder>/WEB-INF/classes. This is only available in Eclipse3.1 - use the link external folder feature.
3. Turn on incremental compile feature in Eclipse IDE, so the classes will update to JBOSS deploy folder automatically once you save Java files.
4. For JSP files, synchronize them using an ant script to the corresponding JBOSS deploy folder. You have to run the ant task after updating some JSP files. We suggest using a shortcut to accelerate this operation.
Now startup JBOSS. If you change a java or jsp file, then just save the file or run ant and JBOSS will hot-replace the classes or jsp. No more over-one-minute re-deploy! The JBoss 4 hot replacement is a great improvement over the JBoss 3 hot replace.
If you follow this method, please ensure that the WEB-INF/classes classes are not deployed when using the master-build script. This is fine for development and debugging but not for serious testing or production. Given the behaviour of the JBOSS class loader, having the same classes in more than one place can cause problems.