process.setSourceMapsEnabled(val)


新增于: v16.6.0, v14.18.0
稳定性: 1 - 实验性的

\Stability: 1 - Experimental

此函数启用或禁用 源映射 v3 对堆栈跟踪的支持。

\This function enables or disables the Source Map v3 support for stack traces.

它提供与使用命令行选项 --enable-source-maps 启动 Node.js 进程相同的功能。

\It provides same features as launching Node.js process with commandline options --enable-source-maps.

只有在启用源映射后加载的 JavaScript 文件中的源映射才会被解析和加载。

\Only source maps in JavaScript files that are loaded after source maps has been enabled will be parsed and loaded.

AltStyle によって変換されたページ (->オリジナル) /