Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bootstrap: expose process._rawDebug as a global function #55907

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

jsumners
Copy link
Contributor

The process._rawDebug function is very helpful when triaging bugs that cross asynchronous boundaries. It is also quite cumbersome to write out process._rawDebug everywhere such a line is needed. So this change exposes it as a global function to facilitate an improved
developer experience.

If we think that a naming collision is possible, maybe it could be named nodeDebug or similar.

The `process._rawDebug` function is very helpful when
triaging bugs that cross asynchronous boundaries. It
is also quite cumbersome to write out `process._rawDebug`
everywhere such a line is needed. So this change exposes
it as a global function to facilitate an improved
developer experience.
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/startup

@nodejs-github-bot nodejs-github-bot added lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. labels Nov 18, 2024
@mcollina mcollina added the semver-major PRs that contain breaking changes and should be released in the next major version. label Nov 18, 2024
Copy link

codecov bot commented Nov 19, 2024

Codecov Report

Attention: Patch coverage is 93.75000% with 1 line in your changes missing coverage. Please review.

Project coverage is 88.49%. Comparing base (746b17e) to head (d02f7a9).
Report is 13 commits behind head on main.

Files with missing lines Patch % Lines
lib/internal/bootstrap/node.js 93.75% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #55907      +/-   ##
==========================================
+ Coverage   88.41%   88.49%   +0.07%     
==========================================
  Files         654      653       -1     
  Lines      188036   187744     -292     
  Branches    36187    36184       -3     
==========================================
- Hits       166260   166139     -121     
+ Misses      14989    14824     -165     
+ Partials     6787     6781       -6     
Files with missing lines Coverage Δ
lib/internal/bootstrap/node.js 99.37% <93.75%> (-0.20%) ⬇️

... and 24 files with indirect coverage changes

---- 🚨 Try these New Features:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. semver-major PRs that contain breaking changes and should be released in the next major version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants