intellij で remote debugging

intellij ultimate editionはsftpでファイル共有ができて便利。

[server] jarを作成
e.g. mvn package

[local intellij] edit configuration
add remote
copy the "command line arguments for running remote JVM"

[server]
e.g., java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 -Xmx8G -cp [./out/artifacts/proj/proj.jar | ./target/proj-SNAPSHOT.jar]  me.keisks.Proj --train -f 10

(immediately)
[local intellij]
press debugging button

タグ:

java intellij IDE
最終更新:2017年07月12日 06:05