Solved

config NetBeans IDE to debug Tomcat VM

Posted on 2004-08-30
3
665 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

914 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

14 Experts available now in Live!

Get 1:1 Help Now