You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Apache Wiki <wi...@apache.org> on 2013/06/04 12:53:01 UTC

[Tomcat Wiki] Update of "FAQ/Developing" by BrianBurch

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification.

The "FAQ/Developing" page has been changed by BrianBurch:
https://wiki.apache.org/tomcat/FAQ/Developing?action=diff&rev1=17&rev2=18

  <<Anchor(Q3)>>
  ==== How do I remotely debug Tomcat using NetBeans? ====
  
- This answer assumes that you have correctly set up a [[http://netbeans.org/|NetBeans]] project and that you know how to use the !NetBeans debugger. If not, please go to http://www.netbeans.org/kb/using-netbeans/40/debug.html and read up on how to use !NetBeans and its debugger.
+ This answer assumes that you know how to work with a !NetBeans Project, and also how to use the !NetBeans debugger. If not, please go to http://www.netbeans.org/kb/using-netbeans/40/debug.html and read up on how to use !NetBeans and its debugger.
+ 
+ Starting with Tomcat trunk revision 1484409, the Tomcat source includes Ant tasks to configure your source directory as a !NetBeans Free-Form Project. After you have successfully run Ant with the default build target (''deploy''), you can then run the ''ide-netbeans'' target. This task will configure your sandbox copy of Tomcat so the source can be inspected, maintained and debugged under the !NetBeans IDE. You should follow the detailed instructions in the README.txt file that will have been installed in your new nbproject directory.
  
  Make sure that Tomcat is started in debug mode as described above, that your application is deployed, and that the sources are all defined as resources in your application. If you have a servlet or JSP file, set a breakpoint where you think a problem might be occurring. Go to "Run->Attach Debugger". A dialog pops up to let you specify the following options:
  
@@ -111, +113 @@

  
  Note that !NetBeans has a second option -- you can debug JSP files and servlets locally using a Tomcat server that is bundled with the IDE. When you debug a JSP file or servlet in the IDE, the bundled Tomcat server automatically starts in debug mode, and the debugger connects to it.
  
- 
+ The Tomcat !NetBeans targets have not yet been back-ported to Tomcat 7. You can copy the files from your copy of the trunk and they should only require minimal editing of paths to work with older versions of Tomcat.
+  
  === Other ===
  
  <<Anchor(Q4)>>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org