Title: Missing documentation for process.traceProcessWarnings · Issue #53514 · nodejs/node · GitHub
Open Graph Title: Missing documentation for process.traceProcessWarnings · Issue #53514 · nodejs/node
X Title: Missing documentation for process.traceProcessWarnings · Issue #53514 · nodejs/node
Description: Affected URL(s) From https://nodejs.org/docs/latest/api/process.html To https://nodejs.org/docs/latest-v6.x/api/process.html Description of the problem I wanted to set --trace-warnings programmaticaly at runtime from within node. I notic...
Open Graph Description: Affected URL(s) From https://nodejs.org/docs/latest/api/process.html To https://nodejs.org/docs/latest-v6.x/api/process.html Description of the problem I wanted to set --trace-warnings programmatic...
X Description: Affected URL(s) From https://nodejs.org/docs/latest/api/process.html To https://nodejs.org/docs/latest-v6.x/api/process.html Description of the problem I wanted to set --trace-warnings programmatic...
Opengraph URL: https://github.com/nodejs/node/issues/53514
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Missing documentation for process.traceProcessWarnings","articleBody":"### Affected URL(s)\r\n\r\nFrom https://nodejs.org/docs/latest/api/process.html\r\nTo https://nodejs.org/docs/latest-v6.x/api/process.html\r\n\r\n### Description of the problem\r\n\r\nI wanted to set `--trace-warnings` programmaticaly at runtime from within node.\r\n\r\nI noticed: https://github.com/nodejs/node/blob/67c19c2900506cd4c60016765e0b7954409dcf90/lib/internal/process/warning.js#L114-L115\r\n\r\nSo I can use `process.traceProcessWarnings = true` at runtime to toggle stack trace on warnings.\r\n\r\n\u003e [!IMPORTANT]\r\n\u003e However in the documentation, from version `6.X LTS` to latest `22.X`, this field `process.traceProcessWarnings` is never documented but the field `process.traceDeprecation` is documented (https://nodejs.org/docs/latest/api/process.html#processtracedeprecation).\r\n\u003e\r\n\u003e Btw, the documentation for the fields `process.traceDeprecation`, `process.noDeprecation` could mention that they are mutable, just like `process.throwDeprecation` does since `12.X LTS`:\r\n\u003e \u003e `process.throwDeprecation` is mutable, so whether or not deprecation warnings result in errors may be altered at runtime.\r\n\u003e\r\n\u003e https://nodejs.org/docs/latest-v12.x/api/process.html#process_process_throwdeprecation\r\n\u003e By https://github.com/nodejs/node/pull/29495\r\n\r\nIt could be nice to document that.\r\n\r\n\u003e [!NOTE]\r\n\u003e Also I noticed the `process.noProcessWarnings` does not work like `process.noDeprecation`:\r\n\u003e it won't change the behavior if assigned at runtime. For this case, using the `--no-warnings` is the only option. \r\n\u003e And I don't know why as this is not documented\r\n\r\nShould I make a PR to add documentation","author":{"url":"https://github.com/BourgoisMickael","@type":"Person","name":"BourgoisMickael"},"datePublished":"2024-06-19T18:32:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/53514/node/issues/53514"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:11e754a5-a0ba-9654-8186-49c9ec0a9b78 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AC6C:321B46:30F0AC0:455F906:6A4C0FA3 |
| html-safe-nonce | 0cc231aafb66abd773d349483fd97aa12f86b0eeee317971adbdc09afb8e38a1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzZDOjMyMUI0NjozMEYwQUMwOjQ1NUY5MDY6NkE0QzBGQTMiLCJ2aXNpdG9yX2lkIjoiNjM3Nzk1NzEzNzA0NjA0ODY3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5e303de0979d232aa48ebc59bbcfee550e1750f0e3713a58baa41bed7f71824c |
| hovercard-subject-tag | issue:2362943738 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/53514/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a07464d864229854bef263690ad513edace7b7a8ba98d07c7f5e68568c703a66/nodejs/node/issues/53514 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a07464d864229854bef263690ad513edace7b7a8ba98d07c7f5e68568c703a66/nodejs/node/issues/53514 |
| og:image:alt | Affected URL(s) From https://nodejs.org/docs/latest/api/process.html To https://nodejs.org/docs/latest-v6.x/api/process.html Description of the problem I wanted to set --trace-warnings programmatic... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | BourgoisMickael |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0ccfc9e5281bfe12e38a4d632dc422843e4d5b6757917f7efda2f6567d72fea9 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 18812876666a23a0912556e224383baa4c84cf8e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width