阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js process.setUncaughtExceptionCaptureCallback

      Node.js process.setUncaughtExceptionCaptureCallback(fn)

      新增于: v9.3.0

      • fn < Function> | < null>

      The process.setUncaughtExceptionCaptureCallback() function sets a function that will be invoked when an uncaught exception occurs, which will receive the exception value itself as its first argument.

      If such a function is set, the ‘uncaughtException’ event will not be emitted. If –abort-on-uncaught-exception was passed from the command line or set through v8.setFlagsFromString(), the process will not abort.

      To unset the capture function, process.setUncaughtExceptionCaptureCallback(null) may be used. Calling this method with a non-null argument while another capture function is set will throw an error.

      Using this function is mutually exclusive with using the deprecated domain built-in module.


      更多内容请参考:Node.js process 进程,或者通过 点击对应菜单 进行查看;


      目录
      本文目录
      目录