I'm trying to figure out how to configure Visual Studio Code in order to remote debug a Java application.
The application starts in a Docker container and I need to attach the debugger in the proper way.
With Eclipse (STS) is easy because there is the Remote Java Application config where you define
- application
- host
- port
and It works, unfortunately I didn't understand how to make the same thing on Visual Studio Code. Reading this article: "https://code.visualstudio.com/docs/remote/containers#_creating-a-devcontainerjson-file" was not helping for me.
Thanks for any answers.