Edit: I opened a new issue with Chromium.
Our project uses TypeScript compiled to JavaScript. When debugging automated unit tests in Karma, I want to disable JavaScript source maps and stick to debugging the compiled code.
I know how to do this from the browser settings but the change expires when I close the browser, so I'm looking for a way to disable it programmatically.
Disable source maps in Chrome DevTools
Chrome accepts other flags from the command line (e.g. --no-sandbox). Is there a flag or similar means to disable source maps?
--devtools-flags
"Passes command line parameters to the DevTools front-end" Maybe this is used in combination with some other flag? – Koffman