{"id":74,"date":"2010-08-12T16:45:53","date_gmt":"2010-08-12T23:45:53","guid":{"rendered":"http:\/\/shivdev.com\/blog\/2010\/08\/12\/java-remote-debug\/"},"modified":"2010-08-12T16:49:25","modified_gmt":"2010-08-12T23:49:25","slug":"java-remote-debug","status":"publish","type":"post","link":"http:\/\/shivdev.com\/blog\/2010\/08\/12\/java-remote-debug\/","title":{"rendered":"Java Remote Debug"},"content":{"rendered":"<p>It&#8217;s easy to forget the options required to start a Java process with Remote Debug turned on at some port. So, to attach your Eclipse (or other IDE) debugger to a running Java process you need to start that process with the following Java options.<\/p>\n<blockquote><p>-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=<strong>5096<\/strong><\/p><\/blockquote>\n<p>Start your Java process with these parameters. Then you can use your IDE to connect to this process.<\/p>\n<p>For Eclipse,<\/p>\n<ul>\n<li>In Eclipse, navigate to <em>Run | Debug Configurations&#8230;<\/em><\/li>\n<li>Create a new <em>Remote Java Application<\/em> (in the left column)<\/li>\n<li>Fill in the required values and in the port enter <strong>5096<\/strong> and click Debug to attach to the process<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s easy to forget the options required to start a Java process with Remote Debug turned on at some port. So, to attach your Eclipse (or other IDE) debugger to a running Java process you need to start that process with the following Java options. -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5096 Start your Java process with these parameters. Then [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[20,11],"tags":[],"_links":{"self":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts\/74"}],"collection":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/comments?post=74"}],"version-history":[{"count":0,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts\/74\/revisions"}],"wp:attachment":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/media?parent=74"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/categories?post=74"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/tags?post=74"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}