M
process.setSourceMapsEnabled
History
Added in: v16.6.0, v14.18.0
v16.6.0, v14.18.0
Introduced in: v0.10.0
v0.10.0
process.setSourceMapsEnabled(val): void
Stability: 1Experimental: Use
module.setSourceMapsSupport() instead.Attributes
val:
booleanThis function enables or disables the Source Map support for stack traces.
It provides same features as launching Node.js process with commandline options
--enable-source-maps.
Only source maps in JavaScript files that are loaded after source maps has been enabled will be parsed and loaded.
This implies calling module.setSourceMapsSupport() with an option
{ nodeModules: true, generatedCode: true }.