Return-Path: Delivered-To: apmail-jakarta-site-cvs-archive@apache.org Received: (qmail 31024 invoked from network); 25 Nov 2002 22:02:30 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 25 Nov 2002 22:02:30 -0000 Received: (qmail 249 invoked by uid 97); 25 Nov 2002 22:03:36 -0000 Delivered-To: qmlist-jakarta-archive-site-cvs@jakarta.apache.org Received: (qmail 170 invoked by uid 97); 25 Nov 2002 22:03:35 -0000 Mailing-List: contact site-cvs-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta WebSite CVS List" Reply-To: "Jakarta General List" Delivered-To: mailing list site-cvs@jakarta.apache.org Received: (qmail 157 invoked by uid 98); 25 Nov 2002 22:03:34 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Date: 25 Nov 2002 22:02:23 -0000 Message-ID: <20021125220223.16900.qmail@icarus.apache.org> From: acoliver@apache.org To: jakarta-site-cvs@apache.org Subject: cvs commit: jakarta-site/docs/site idedev-rdnetbeans.html idedevelopers.html X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N acoliver 2002/11/25 14:02:22 Modified: xdocs/site idedevelopers.xml docs/site idedevelopers.html Added: xdocs/site idedev-rdnetbeans.xml docs/site idedev-rdnetbeans.html Log: new "love" guides for remote debugging with netbeans/forte Revision Changes Path 1.7 +1 -0 jakarta-site/xdocs/site/idedevelopers.xml Index: idedevelopers.xml =================================================================== RCS file: /home/cvs/jakarta-site/xdocs/site/idedevelopers.xml,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- idedevelopers.xml 25 Nov 2002 03:17:35 -0000 1.6 +++ idedevelopers.xml 25 Nov 2002 22:02:22 -0000 1.7 @@ -156,6 +156,7 @@ 1.1 jakarta-site/xdocs/site/idedev-rdnetbeans.xml Index: idedev-rdnetbeans.xml =================================================================== Werner Punz Andrew C. Oliver IDE Developer's Guide - Setting up Netbeans/Forte for Remote Debugging

So now you've got Tomcat remote debuggable right? Now you want to get your favorite IDE, Netbeans, ready for action right? So lets not waste time embelishing. Netbeans/Forte makes this really easy.

We're going to assume you have a project set up with all of the fixings and have some idea of what you're doing in this respect. If not then thats really outside the scope of this topic and more in the scope of you needing to go to eclipse.org and read up on how to use your ide, and maybe practice a little bit before you come back to this. We're also going to assume you have some idea of what a debugger is and how to use one. If not, then play around debugging a project locally first by going here and following the instructions.

Make sure tomcat is started and that your app is deployed and the sources, etc are all defined as resources in your app. If you have a servlet or something, set a breakpoint where its sure to hit on the next request. Go to Debug->Start Session->Attach. A dialog should pop up and use following options:

Default Debugger:JPDA
Socket Attach
Host:the ip address of the host your Tomcat installation is running on (127.0.0.1 if it is your machine)
Port:The port of your tomcat debugging interface, which should be 8000 if you've followed the instructions correctly

Then press ok and you should have a debugging connection very similar to local debugging. (you can set breakpoints inspect variables etc.)

Netbeans/Forte however has a second option, you can debug JSP files and servlets locally. Nothing really exciting happens there, an integrated Tomcat server is started and a remote connection is opened. Note however that the integrated Netbeans Tomcat usually is a few versions behind the current Jakarta/Apache version.

1.7 +1 -0 jakarta-site/docs/site/idedevelopers.html Index: idedevelopers.html =================================================================== RCS file: /home/cvs/jakarta-site/docs/site/idedevelopers.html,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- idedevelopers.html 25 Nov 2002 03:17:35 -0000 1.6 +++ idedevelopers.html 25 Nov 2002 22:02:22 -0000 1.7 @@ -343,6 +343,7 @@

1.1 jakarta-site/docs/site/idedev-rdnetbeans.html Index: idedev-rdnetbeans.html =================================================================== The Jakarta Site - IDE Developer's Guide - Setting up Netbeans/Forte for Remote Debugging

About Jakarta

Download

Get Involved

SubProjects

Project Management

Setting up Netbeans/Forte for Remote Debugging

So now you've got Tomcat remote debuggable right? Now you want to get your favorite IDE, Netbeans, ready for action right? So lets not waste time embelishing. Netbeans/Forte makes this really easy.

We're going to assume you have a project set up with all of the fixings and have some idea of what you're doing in this respect. If not then thats really outside the scope of this topic and more in the scope of you needing to go to eclipse.org and read up on how to use your ide, and maybe practice a little bit before you come back to this. We're also going to assume you have some idea of what a debugger is and how to use one. If not, then play around debugging a project locally first by going here and following the instructions.

Make sure tomcat is started and that your app is deployed and the sources, etc are all defined as resources in your app. If you have a servlet or something, set a breakpoint where its sure to hit on the next request. Go to Debug->Start Session->Attach. A dialog should pop up and use following options:

Default Debugger:JPDA
Socket Attach
Host:the ip address of the host your Tomcat installation is running on (127.0.0.1 if it is your machine)
Port:The port of your tomcat debugging interface, which should be 8000 if you've followed the instructions correctly

Then press ok and you should have a debugging connection very similar to local debugging. (you can set breakpoints inspect variables etc.)

Netbeans/Forte however has a second option, you can debug JSP files and servlets locally. Nothing really exciting happens there, an integrated Tomcat server is started and a remote connection is opened. Note however that the integrated Netbeans Tomcat usually is a few versions behind the current Jakarta/Apache version.



Copyright © 1999-2002, Apache Software Foundation
-- To unsubscribe, e-mail: For additional commands, e-mail: