gluongluon-mobilegluon-desktop

GluonHq plugin can not debug


I tried gluonmobile 4.1.0 and 4.2.0, when I run the "debug" task(Tasks/application/debug), it just blocks:

Executing external task 'debug'...

:compileJava UP-TO-DATE

:processResources UP-TO-DATE

:classes UP-TO-DATE

:compileDesktopJava UP-TO-DATE

:processDesktopResources UP-TO-DATE

:desktopClasses UP-TO-DATE

:debug

Listening for transport dt_socket at address: 5005

(Blocking forever....)


Solution

  • In Eclipse e.g. you can create a Debug Configuration of type Remote Java Application which will be attached to the corresponding socket:

    enter image description here

    After you have started the gradle task debug you then have to start the Debug Configuration.