LoginSignup
4
2

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

  2. IntelliJ上で、Attach to Node.js/Chrome を実行
    Run > Edit Configuration ... > +ボタン > Attach to Node.js/Chrome
    スクリーンショット 2019-12-28 21.56.40.png

  3. 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