Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug in Intellij runPlay #176

Open
Jonatha1983 opened this issue May 10, 2022 · 2 comments
Open

Debug in Intellij runPlay #176

Jonatha1983 opened this issue May 10, 2022 · 2 comments

Comments

@Jonatha1983
Copy link

Looks like runPlay task is not connecting to Intellij when running local debug - did someone succeed to make this work ?
Also look like when stopping in Intellij the runPlay task the java process is still running ...

Any idea?
Thanks

@Sineaggi
Copy link
Contributor

We were able to get local debugging working via forkOptions

tasks.runPlay {
    forkOptions.jvmArgs = listOf(
        "-Xdebug", "-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9998"
    )
}

Then run from Intellij, and then attach via Run -> Attach to Process.

@Jonatha1983
Copy link
Author

@Sineaggi thanks but this is remote debug in IDE - I mean run local debug without need to attach

Thanks anyway

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

No branches or pull requests

2 participants