With reference to this article, I was impressed by running the remote debug environment of Nuxt.js, so I will try the same with Java. https://qiita.com/relu/items/defde8de8c4d21af662f
The environment used this time is as follows.
|Tool name, etc.||version|
|Visual Studio Code Insiders||1.34.20-insider|
If you have Homebrew installed, just command it. If you have not included it, please check it yourself.
$ brew install docker $ brew cask install docker
#Install VSCode Insiders $ brew cask install visual-studio-code-insiders
Let's put this extension in advance.
I will also include the Docker extension. (This is your choice.)
Get the source from:
$ git clone https://github.com/Microsoft/vscode-remote-try-java
Run from VSCode Insiders.
$ code-insiders vscode-remote-try-java
Then, the following dialog will be displayed, so press the button.
src / main / java / com / mycompany / app / App.java and set the breakpoint.
Press F5 to stop at the breakpoint!
With just these steps, you can build a containerized Java development environment. This time, I just followed the official guidance, so I will learn the settings in detail and add it here.
Please wait for a while until the article is updated.