Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Debug options #31

Closed
hrstoyanov opened this issue May 10, 2014 · 3 comments
Closed

Debug options #31

hrstoyanov opened this issue May 10, 2014 · 3 comments
Labels

Comments

@hrstoyanov
Copy link

Steffen,
In your excellent plugin&docs you suggest that one could run dev mode with the below options but has to wait until the IDE attaches to the dev process on the debug port:
./gradlew -DgwtDev.debug=true ....

How can one, however, run in debug mode with these JVM setting instead:
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005

The difference is that with this dev mode will launch and not wait, the developer is free to attach /detach debugger to it at will. Also, how can one specify different port than 5005?

Thanks.

@steffenschaefer
Copy link
Owner

The plugin simply uses Gradle's debugging functionality. The port and suspension is hard-coded somewhere in Gradle. I son't know where and I don't know how to change this.

To manually configure the parameter as specified above do something like this:

gwtDev {
    jvmArgs '-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005'
 }

@hrstoyanov
Copy link
Author

Thanks!

/Hristo Stoyanov
On May 14, 2014 11:26 AM, "Steffen Schäfer" notifications@github.com
wrote:

The plugin simply uses Gradle's debugging functionality. The port and
suspension is hard-coded somewhere in Gradle. I son't know where and I
don't know how to change this.

To manually configure the parameter as specified above do something like
this:

gwtDev {
jvmArgs '-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005'
}


Reply to this email directly or view it on GitHubhttps://github.com//issues/31#issuecomment-43118524
.

@nskmda
Copy link

nskmda commented Jan 5, 2015

Steffen, looks like your solution doesn't work.
I tried to use it but I get

:gwtDev
Error occurred during initialization of VM
agent library failed to init: jdwp
ERROR: Cannot load this JVM TI agent twice, check your java command line for duplicate jdwp options.
:gwtDev FAILED

And when I tried to configure the same port to run Gradle itself, I got the following:

:gwtDevERROR: Cannot load this JVM TI agent twice, check your java command line for duplicate jdwp options.

Error occurred during initialization of VM
agent library failed to init: jdwp
:gwtDev FAILED

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants