diff --git a/doc/api/process.md b/doc/api/process.md index b8c9d7b4b7ce03..2a4d6e839760be 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -3249,6 +3249,24 @@ This function is only available on POSIX platforms (i.e. not Windows or Android). This feature is not available in [`Worker`][] threads. +## `process.setSourceMapsEnabled(val)` + + +> Stability: 1 - Experimental + +* `val` {boolean} + +This function enables or disables the [Source Map v3][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. + ## `process.setUncaughtExceptionCaptureCallback(fn)`