Can't start in debug mode Grails 2.5 app in 2017.3

Answered

When I attempt to start my grails 2.5 app in debug mode, I get the following error: 

ERROR: JDWP option syntax error: -agentlib:jdwp=transport=dt_socket,address=61129,suspend=n,server=y -javaagent:C:\Users\dsilva\.IntelliJIdea2017.3\system\captureAgent\debugger-agent.jar=C:\Users\dsilva\AppData\Local\Temp\capture21735.props
Error |
Forked Grails VM exited with error

It worked before on 2017.2

Any ideas how I can fix it? 

2
11 comments

As a workaround please disable "Insrumenting agent" in "File | Settings | Build, Execution, Deployment | Debugger | Async Stacktraces": https://youtrack.jetbrains.com/issue/IDEA-182962

1
Avatar
Permanently deleted user

Thanks! That worked!

0

You are welcome!

0
Avatar
Permanently deleted user

Same issue for me as well, grails 2.4

The workaround works

0
Avatar
Permanently deleted user

>>...please disable "Insrumenting agent" in "File | Settings | Build, Execution, Deployment | Debugger | Async Stacktraces"

Unhelpful.

Same issue for grails 2.3.11 - Debug (Shift+F9) doesn't work

IntelliJ IDEA 2017.3.2

0

Do you get the same error message?

0
Avatar
Permanently deleted user

Unfortunately I do not see any warning or error messages.

Ubuntu 16.04 LTS
Java: 1.7.0_80

IntelliJ IDEA 2017.3.2
Project on Grails 2.3.11
Run (Shift + F10) - It works
Debug (Shift + F9) - Doesn't work (It looks like not implemented event, when you click on the button without action or with empty action, you know)


IntelliJ IDEA 2017.2.6
Project on Grails 2.3.11
Run (Shift + F10) - It works
Debug (Shift + F9) - It works

0

Could you please share idea.log ("Help | Show Log in...") via any file sharing service after restarting IDE and reproducing the issue?

0

Do you face the same issue with new sample groovy project?

0
Avatar
Permanently deleted user

>>Do you face the same issue

No.

But, of course, Debug mode in default project (Grails/Groovy) from the wizard works as well.

And I found two solutions of this issue: easy way

1) Close project. You must delete directory .idea and all *.iml files from your project. After that you should to use "Import Project" option from Welcome screen IDE.

 

2) Difficult way

I didn't want to set up the project from scratch. This is very laborious work.
But I had to do it.
So, I copied all source code from the old project into my new one (new default project).
Also, I have added (it very very important for me)
<component name="RunManager" selected="Grails.Grails:search">...... </>
into new workspace.xml file from old workspace.xml. (Directory .idea)

Elements with <configuration default="true">...</> must be ignored. When I used "RunManager" with all child nodes then Debug mode doesn't work again in new project too.

Resolved. Now it is debug mode works fine.

0

Please sign in to leave a comment.