0

I'm starting out with yalc for publishing local dependencies for a node express app. I debug buy running npm run dev in a javascript debug console. My breakpoints hit in vs code in the express project, but not in the dependency. Has anyone got this working? Can it work? I have "sourceMap":true in the tsconfig of my dependency, and I've tried putting the sourceRoot as a path on my local machine.

More generally, debugging node in vs code feels flaky. I can't always step in, and the debugger might step down 3 lines or up one. Are there tips?

bbsimonbb
  • 27,056
  • 15
  • 80
  • 110

0 Answers0