I'm trying to debug TS
project. WebStorm automatically picks up source maps and show original ts
files. I don't want to use source maps
and debug generated js
files. How can I disable usage of source maps in WebStorm?
NOTE: this question is not about how to disable source maps generation, it's about how to disable source maps usage during debugging
One option is to check if there's a tsconfig.json file and in it, you can disable the sourceMap generation:
{
"compilerOptions": {
"sourceMap": false
}
}
Another option, is to disable the use of source map files in your browser's debugger, for instance in Chrome you can uncheck this option:
Under Settings -> Preferences
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With