Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debug GRAILS 3 in eclipse

Tags:

grails

I would like to know if is there any way to debug a Grails 3 application with a single-click from eclipse (mars) IDE, in the same way as a Java (or Java Spring Boot) web application that it is possible to do a "debug on server".

It is possible to "run as" "gradle build" ... but not a "debug as" "gradle build".

Is there any way for doing this or is there any intention to have this functionality in the future?

Any eclipse plugin?

Thanks in advance.

like image 584
gbelin Avatar asked Jan 18 '16 09:01

gbelin


People also ask

How do I debug in eclipse?

A Java program can be debugged simply by right clicking on the Java editor class file from Package explorer. Select Debug As → Java Application or use the shortcut Alt + Shift + D, J instead. Either actions mentioned above creates a new Debug Launch Configuration and uses it to start the Java application.

How do I debug spring boot gradle in eclipse?

In Eclipse, from the toolbar, select Run -> Debug Configurations -> select Remote Java Application -> click the New button -> select as Connection Type Standard (Socket Attach), as Host localhost, and as Port 8002 (or whatever you have configured in the steps before). Click Apply and then Debug.


1 Answers

I finally found working solution. My eclipse IDE version:

Version: Mars.2 Release (4.5.2)

Build id: 20160218-0600

Installation details -> Installed software:

Buildship: Eclipse Plug-ins for Gradle  1.0.11.v20160328-1759   org.eclipse.buildship.feature.group Eclipse Buildship
Eclipse IDE for Java EE Developers  4.5.2.20160218-0600 epp.package.jee null
Groovy Compiler 2.4 Feature 2.9.2.xx-201603042130-e45   org.codehaus.groovy24.feature.feature.group Codehaus.org
Groovy-Eclipse Feature  2.9.2.xx-201603042130-e45   org.codehaus.groovy.eclipse.feature.feature.group   Codehaus.org
Spring IDE Core (required)  3.7.3.201602250914-RELEASE  org.springframework.ide.eclipse.feature.feature.group   Spring IDE Developers

After importing project to workspace add new debug Spring Boot App configuration:

enter image description here

Enjoy debugging.

like image 67
Michal_Szulc Avatar answered Nov 15 '22 09:11

Michal_Szulc