config NetBeans IDE to debug Tomcat VM

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
LVL 1
victorliAsked:
Who is Participating?
 
rsripracConnect With a Mentor Commented:
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
 
rsripracCommented:
Try:

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

and connect via:

jdb -attach jdbconn


-Ram
0
 
victorliAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.