You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Hehl, Thomas" <Th...@acs-inc.com> on 2008/02/13 16:56:52 UTC
Debugging tomcat with eclipse
It seems like I've had this working before, but it surely isn't working now.
I am trying to setup tomcat 5.5 so I can debug it with eclipse. I found the
docs and set up the following environment variables.
CATALINA_OPTS="-Dp6.home=D:\tomcat\common\lib:-Xdebug
-Xrunjdwp:transport=dt_soc
ket,address=8000,server=y,suspend=n -Xmx1024m -Xms1024m -XX:PermSize=512m
-XX:Ma
xPermSize=512m -XX:NewSize=256m"
JPDA_ADDRESS=8000
JPDA_TRANSPORT=dt_socket
Then I try to connect my debugger from eclipse using port 8000 and I get
connection failed.
Ideas?
Thanks.
Thom Hehl
Sr. eJuror Architect
* Office (859) 277-8800 x 144
* Thomas.Hehl@acs-inc.com <ma...@acs-inc.com>
ACS, Inc.
Government Solutions
1733 Harrodsburg Road
Lexington, KY 40504-3617
This e-mail message, including any attachments, is for the sole use of the
intended recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or distribution is
prohibited. If you are not the intended recipient, please contact the sender
by reply e-mail and destroy all copies of the original message and notify
sender via e-mail at Thomas.Hehl@acs-inc.com
<ma...@acs-inc.com> or by telephone at 859-277-8800 ext. 144.
Thank you.
Re: Debugging tomcat with eclipse
Posted by Adam Gordon <ad...@readytalk.com>.
Actually, if one looks at the catalina.sh script, one woudl see that
those are the defaults (unless they were changed) so one shouldn't need
to change anything.
-adam
Luis Rivera wrote:
> And don't forget to set
>
> JPDA_ADDRESS=8000
>
> JPDA_TRANSPORT=dt_socket
>
> as you did before :)
>
> --Luis R.
>
> On Feb 13, 2008 9:19 AM, Adam Gordon <ad...@readytalk.com> wrote:
>
>
>> It's actually MUCH easier than that... :-)
>>
>> If you use Tomcat's start and stop scripts, pass the "jpda" parameter to
>> the script, e.g. "/usr/local/tomcat/bin/catalina.sh jpda start"
>>
>> Then, in Eclipse, select the Debug Perspective and then click the down
>> arrow in the little green bug icon in the toolbar and select "Open Debug
>> Dialog."
>>
>> Right-click on "Remote Application Server" in the list on the left and
>> select "New." Name it whatever you want and use the Browse button to
>> select the project you want to debug. If tomcat is running on the same
>> box, leave the host and port alone and click the Debug button in the
>> lower right corner.
>>
>> You should see a ton of threads appear in the Debug frame in the upper
>> left. You are now connected.
>>
>> --adam
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Debugging tomcat with eclipse
Posted by Luis Rivera <lu...@gmail.com>.
And don't forget to set
JPDA_ADDRESS=8000
JPDA_TRANSPORT=dt_socket
as you did before :)
--Luis R.
On Feb 13, 2008 9:19 AM, Adam Gordon <ad...@readytalk.com> wrote:
> It's actually MUCH easier than that... :-)
>
> If you use Tomcat's start and stop scripts, pass the "jpda" parameter to
> the script, e.g. "/usr/local/tomcat/bin/catalina.sh jpda start"
>
> Then, in Eclipse, select the Debug Perspective and then click the down
> arrow in the little green bug icon in the toolbar and select "Open Debug
> Dialog."
>
> Right-click on "Remote Application Server" in the list on the left and
> select "New." Name it whatever you want and use the Browse button to
> select the project you want to debug. If tomcat is running on the same
> box, leave the host and port alone and click the Debug button in the
> lower right corner.
>
> You should see a ton of threads appear in the Debug frame in the upper
> left. You are now connected.
>
> --adam
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
Re: Debugging tomcat with eclipse
Posted by Adam Gordon <ad...@readytalk.com>.
It's actually MUCH easier than that... :-)
If you use Tomcat's start and stop scripts, pass the "jpda" parameter to
the script, e.g. "/usr/local/tomcat/bin/catalina.sh jpda start"
Then, in Eclipse, select the Debug Perspective and then click the down
arrow in the little green bug icon in the toolbar and select "Open Debug
Dialog."
Right-click on "Remote Application Server" in the list on the left and
select "New." Name it whatever you want and use the Browse button to
select the project you want to debug. If tomcat is running on the same
box, leave the host and port alone and click the Debug button in the
lower right corner.
You should see a ton of threads appear in the Debug frame in the upper
left. You are now connected.
--adam
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org