jiti icon indicating copy to clipboard operation
jiti copied to clipboard

Added Example for debugging with Visual Studio Code and source maps

Open Hecatron opened this issue 2 years ago • 1 comments

Hi, It took me a little while to figure out the right combination of options to use when debugging typescript using visual studio code and jiti. I figured I'd add an example just to make it easier for others.

I noticed that when the cache is enabled, the cached files are not overwritten if the sourcemap option was disabled the first time around but then enabled the second time around when launching a script. Also disabling the cache seems to be a necessity anyway when debugging with source maps, as I think the sourcemap changes on each run.

Hecatron avatar Jan 10 '23 23:01 Hecatron

Holy cow, I hope you have an amazing day today, you certainly saved mine.

daxaxelrod avatar May 29 '24 21:05 daxaxelrod

I appreciate your work on this. With introduction of jiti/register, i think we can instead suggest people to directly use Node.js ESM loader for better debugging.

pi0 avatar Sep 25 '24 13:09 pi0