Konubinix' opinionated web of thoughts

Debug Node Typescript Dap Emacs

fleeting

debug node typescript dap emacs

add "sourceMap": true in the tsconfig.ts

after running tsc, run

node --inspect-brk ./dist/.../transpiledfile.js someoptions

FIRST add a breakpoint in the ts files.

Then dap-debug, and node attach, and voilĂ !!

Or use a config that launch the program, see debug cucumber tests in emacs.

Notes linking here