<

Remote Debugging (Break Point) with IntelliJ + TypeScript + Docker

TL;DR

  1. Run ts-node-dev --inspect=0.0.0.0:9229 ./dist/index.js on Docker container
ts-node-dev
ts-node-dev
  1. Execute Attach to Node.js/Chrome on IntelliJ

Run > Edit Configuration ... > + button > Attach to Node.js/Chrome

Attach to Node.js/Chrome
Attach to Node.js/Chrome
  1. Set a BreakPoint on IntelliJ and access the browser
IntelliJ Breakpoint
IntelliJ Breakpoint

※ In Docker container, it is necessary to open the application port (8080) and the inspect port (9229)

Opening of 8080 and 9229 ports
Opening of 8080 and 9229 ports

If it was helpful, support me with a ☕!

Share

Related tags