config NetBeans IDE to debug Tomcat VM on Windows

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 Netbeans 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 on Windows.

Thanks
LVL 1
victorliAsked:
Who is Participating?
 
Computer101Commented:
PAQed, with points refunded (250)

Computer101
E-E Admin
0
 
Giant2Commented:
the address and port you use for debug is the same you specify when you run the tomcat in debug mode?
0
 
victorliAuthor Commented:
please give the detailed information. How to start Tomcat using the parameter and give the examples.
0
 
victorliAuthor Commented:
Thanks, I have got 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.