4
2

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.

IntelliJ + TypeScript + Docker で Remote Debug (Break Point)

Posted at

TL;DR

  1. Dockerコンテナ上で、 ts-node-dev --inspect=0.0.0.0:9229 ./dist/index.js を実行
スクリーンショット 2019-12-28 22.10.20.png
  1. IntelliJ上で、Attach to Node.js/Chrome を実行
    Run > Edit Configuration ... > +ボタン > Attach to Node.js/Chrome
スクリーンショット 2019-12-28 21.56.40.png 1. IntelliJ上でBreakPointを貼り、ブラウザにアクセス スクリーンショット 2019-12-28 22.13.41.png

※ Dockerコンテナでは、アプリ用ポート(8080)と、inspect用ポート(9229)を開放する必要あり
スクリーンショット 2019-12-28 22.11.08.png

4
2
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
4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?