{"id":195,"date":"2010-04-23T16:51:09","date_gmt":"2010-04-24T00:51:09","guid":{"rendered":"http:\/\/hongyu.org\/wordpress\/?p=195"},"modified":"2010-04-23T16:51:09","modified_gmt":"2010-04-24T00:51:09","slug":"debug-tomcat-in-eclipse","status":"publish","type":"post","link":"https:\/\/www.hongyu.org\/wordpress\/?p=195","title":{"rendered":"Debug Tomcat in Eclipse"},"content":{"rendered":"<p>1) Modify catalina.bat file to select the right JPDA debug protocol and port, say,<br \/>\n  set JPDA_TRANSPORT=dt_socket<br \/>\n  set JPDA_ADDRESS=8000<br \/>\nThen, start Tomcat in the debug mode.<br \/>\n  catalina.bat jpda start<\/p>\n<p>2) Under Eclipse, select &#8220;Run->Debug Configurations&#8230;&#8221;. Click on &#8220;Remote Java Applications&#8221;, then click &#8220;New&#8221;. Type in the title and all. Save and run. Eclipse will connect to the VM that Tomcat is running under.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1) Modify catalina.bat file to select the right JPDA debug protocol and port, say, set JPDA_TRANSPORT=dt_socket set JPDA_ADDRESS=8000 Then, start Tomcat in the debug mode. catalina.bat jpda start 2) Under Eclipse, select &#8220;Run->Debug Configurations&#8230;&#8221;. Click on &#8220;Remote Java Applications&#8221;, then click &#8220;New&#8221;. Type in the title and all. Save and run. Eclipse will connect to &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.hongyu.org\/wordpress\/?p=195\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Debug Tomcat in Eclipse&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/195"}],"collection":[{"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=195"}],"version-history":[{"count":1,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/195\/revisions"}],"predecessor-version":[{"id":196,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/195\/revisions\/196"}],"wp:attachment":[{"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongyu.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}