Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 685
  • Last Modified:

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
0
victorli
Asked:
victorli
  • 2
1 Solution
 
rsripracCommented:
Try:

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

and connect via:

jdb -attach jdbconn


-Ram
0
 
rsripracCommented:
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
 
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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now