Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

config NetBeans IDE to debug Tomcat VM

Posted on 2004-08-30
3
Medium Priority
?
684 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

715 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