0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

VsCodeでJerseyのデバック

Posted at

1 MavenでJerseyプロジェクトの作成

下記写真のプロジェクトを選択
スクリーンショット (26).png

2 pom.xmlにjettyPluginを追加する

下記を参考

<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>11.0.7</version>
</plugin>

3 launch.jsonの作成

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "java",
            "name": "Debug (Attach)",
            "request": "attach",
            "hostName": "localhost",
            "port": 8000
        }
    ]
}

4 mvndebug jetty:runを実行

5 Debugをクリック

上記手順でデバックができるはずです!!

参考https://github.com/kasecato/vscode-javadebug-sample/tree/maven-jetty

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?