Solved

config NetBeans IDE to debug Tomcat VM

Posted on 2004-08-30
3
664 Views
Last Modified: 2013-11-24
I add the following to "catalina.bat" file:
CATALINA_OPTS=-Xdebug -Xrunjdwp:transport=dt_shmem,server=y,address=app,suspend=n

then started the "startup.bat", in NetBeans I attached using address name as "app" but Netbeans complains "cannot attach, check parameter and try again".

I have done the debug facility with Linux easily using dt_socket, do not understanad why takes me
so much trouble to figure it out in Windows.

Thanks
0
Comment
Question by:victorli
  • 2
3 Comments
 
LVL 5

Expert Comment

by:rsriprac
ID: 11939582
Try:

java -Xdebug -Xrunjdwp:transport=dt_shmem,address=jdbconn,server=y,suspend=n MyClass

and connect via:

jdb -attach jdbconn


-Ram
0
 
LVL 5

Accepted Solution

by:
rsriprac earned 250 total points
ID: 11939604
O I guess u are using netbean,  I have heard people are having trouble connecting via shared mem.  dt_socket dont work in windows?

-Ram
0
 
LVL 1

Author Comment

by:victorli
ID: 11946446
Thanks for your reminding, dt_socket works in Windows.

I found the answer in http://cocoon.apache.org/2.1/faq/faq-debugging.html
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

This is about my first experience with programming Arduino.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now