• Home
  • Raw
  • Download

Lines Matching +full:js +full:- +full:native +full:- +full:api

3 <!--introduced_in=v11.8.0-->
4 <!-- type=misc -->
6 > Stability: 2 - Stable
8 <!-- name=report -->
10 Delivers a JSON-formatted diagnostic summary, written to a file.
14 and native stack traces, heap statistics, platform information, resource
17 triggering programmatically through API calls.
29 "dumpEventTime": "2018-12-21T00:50:11Z",
35 "--report-uncaught-exception",
36 "/home/nodeuser/project/node/test/report/test-exception.js",
39 "nodejsVersion": "v12.0.0-pre",
46 "node": "12.0.0-pre",
47 "v8": "7.1.302.28-node.5",
62 "osRelease": "3.10.0-862.el7.x86_64",
67 "model": "Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz",
76 "model": "Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz",
98 "message": "Error: *** test-exception.js: throwing uncaught Error",
100 "at myException (/home/nodeuser/project/node/test/report/test-exception.js:9:11)",
101 "at Object.<anonymous> (/home/nodeuser/project/node/test/report/test-exception.js:12:3)",
102 "at Module._compile (internal/modules/cjs/loader.js:718:30)",
103 "at Object.Module._extensions..js (internal/modules/cjs/loader.js:729:10)",
104 "at Module.load (internal/modules/cjs/loader.js:617:32)",
105 "at tryModuleLoad (internal/modules/cjs/loader.js:560:12)",
106 "at Function.Module._load (internal/modules/cjs/loader.js:552:3)",
107 "at Function.Module.runMain (internal/modules/cjs/loader.js:771:12)",
108 "at executeUserCode (internal/bootstrap/node.js:332:15)"
302 "MANPATH": "/opt/rh/devtoolset-3/root/usr/share/man:",
306 "TERM": "xterm-256color",
309 …RL5LIB": "/opt/rh/devtoolset-3/root//usr/lib64/perl5/vendor_perl:/opt/rh/devtoolset-3/root/usr/lib…
311 "JAVACONFDIRS": "/opt/rh/devtoolset-3/root/etc/java:/etc/java",
313 "PCP_DIR": "/opt/rh/devtoolset-3/root",
316 "LD_LIBRARY_PATH": "/opt/rh/devtoolset-3/root/usr/lib64:/opt/rh/devtoolset-3/root/usr/lib",
317 "HOSTTYPE": "x86_64-linux",
318 "XDG_CONFIG_DIRS": "/opt/rh/devtoolset-3/root/etc/xdg:/etc/xdg",
320 …"PATH": "/home/nodeuser/project/node:/opt/rh/devtoolset-3/root/usr/bin:/usr/local/bin:/usr/bin:/us…
322 "LANG": "en_US.UTF-8",
328 …YTHONPATH": "/opt/rh/devtoolset-3/root/usr/lib64/python2.7/site-packages:/opt/rh/devtoolset-3/root…
331 "XDG_DATA_DIRS": "/opt/rh/devtoolset-3/root/usr/share:/usr/local/share:/usr/share",
333 "INFOPATH": "/opt/rh/devtoolset-3/root/usr/share/info",
387 "/lib64/ld-linux-x86-64.so.2"
395 node --report-uncaught-exception --report-on-signal \
396 --report-on-fatalerror app.js
399 * `--report-uncaught-exception` Enables report to be generated on
400 un-caught exceptions. Useful when inspecting JavaScript stack in conjunction
401 with native stack and other runtime environment data.
403 * `--report-on-signal` Enables report to be generated upon receiving
404 the specified (or predefined) signal to the running Node.js process. (See below
417 * `--report-on-fatalerror` Enables the report to be triggered on
418 fatal errors (internal errors within the Node.js runtime, such as out of memory)
423 * `--report-compact` Write reports in a compact format, single-line JSON, more
424 easily consumable by log processing systems than the default multi-line format
427 * `--report-directory` Location at which the report will be
430 * `--report-filename` Name of the file to which the report will be
433 * `--report-signal` Sets or resets the signal for report generation
436 A report can also be triggered via an API call from a JavaScript application:
438 ```js
445 ```js
455 ```js
457 process.chdir('/non-existent-path');
467 ```js
469 process.chdir('/non-existent-path');
477 via an API call from a JavaScript application:
479 ```js
491 ```js
496 The API versions are useful when inspecting the runtime state from within
497 the application, in expectation of self-adjusting the resource consumption,
501 type, date, time, PID and Node.js version, sections containing JavaScript and
502 native stack traces, a section containing V8 heap information, a section
505 triggered using the Node.js REPL:
510 Writing Node.js report to file: report.20181126.091102.8480.0.001.json
511 Node.js report completed
519 times for the same Node.js process.
548 Node.js process.
550 ```js
572 NODE_OPTIONS="--report-uncaught-exception \
573 --report-on-fatalerror --report-on-signal \
574 --report-signal=SIGUSR2 --report-filename=./report.json \
575 --report-directory=/home/nodeuser"
578 Specific API documentation can be found under
579 [`process API documentation`][] section.
582 <!-- YAML
584 - version: v12.16.2
585 pr-url: https://github.com/nodejs/node/pull/31386
587 -->
600 [`process API documentation`]: process.html