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