简体   繁体   中英

How to turn on remote debug on app that run on a docker container?

I'm using Intellij IDEA and I run my application on docker container and I need to attach remote debug for my application. But if I use java 8 all works is fine but if I assemble my application using java 11 I couldn't attach remote debug to my app that is running in the Docker container. I get the following error message: 在此处输入图片说明

that is my debug configuration: 在此处输入图片说明 What is I'm doing wrong?

I found my mistake. I'm running my application on the docker container with a configuration for remote debug for java 8 instead of java 11. in that params need to be correct:

-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005

I forgot the * symbol in the address.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM