victorli
asked on
config NetBeans IDE to debug Tomcat VM
I add the following to "catalina.bat" file:
CATALINA_OPTS=-Xdebug -Xrunjdwp:transport=dt_shm em,server= y,address= app,suspen d=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
CATALINA_OPTS=-Xdebug -Xrunjdwp:transport=dt_shm
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for your reminding, dt_socket works in Windows.
I found the answer in http://cocoon.apache.org/2.1/faq/faq-debugging.html
I found the answer in http://cocoon.apache.org/2.1/faq/faq-debugging.html
java -Xdebug -Xrunjdwp:transport=dt_shm
and connect via:
jdb -attach jdbconn
-Ram