{"id":11695,"date":"2014-02-06T14:44:14","date_gmt":"2014-02-06T09:14:14","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=11695"},"modified":"2016-12-19T14:52:23","modified_gmt":"2016-12-19T09:22:23","slug":"grails-debugging-in-version-2-3-x-and-above","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/grails-debugging-in-version-2-3-x-and-above\/","title":{"rendered":"Grails debugging in version 2.3.x and above"},"content":{"rendered":"<p>Hi everyone,<\/p>\n<p>Some time ago I was trying to debug my Grails application which was running on Grails version 2.3.4. I usually debug using remote debug configuration inside IntelliJ IDEA and issuing a command like <strong>&#8220;grails-debug run-app&#8221;<\/strong>. But strangely grails-debug is no more supported, and your application will run as normal without debugger attached.<\/p>\n<p>So the workaround is to use grails command like this <strong>&#8220;grails run-app &#8211;debug-fork&#8221;<\/strong> or like this <strong>&#8220;grails &#8211;debug-fork run-app&#8221;<\/strong>, you can go either way. Now when you remote debug your application, IDEA will be able to attach debugger on your application and after some time depending on your application how much time it takes to come up you will see in your command window <strong>&#8220;Server running. Browse to http:\/\/localhost:8080\/<em>&lt;my application&gt;<\/em>\/&#8221;<\/strong><\/p>\n<p>I hope it would save you on running your Grails application again using debug mode.<\/p>\n<p>Thanks<\/p>\n<p>Manvendra Singh<\/p>\n<p>My LinkedIn<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi everyone, Some time ago I was trying to debug my Grails application which was running on Grails version 2.3.4. I usually debug using remote debug configuration inside IntelliJ IDEA and issuing a command like &#8220;grails-debug run-app&#8221;. But strangely grails-debug is no more supported, and your application will run as normal without debugger attached. So [&hellip;]<\/p>\n","protected":false},"author":70,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":1},"categories":[7],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/11695"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/70"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=11695"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/11695\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=11695"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=11695"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=11695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}