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

chore: set the DEBUG_DEPTH variable #18289

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

Conversation

btea
Copy link
Collaborator

@btea btea commented Oct 5, 2024

Description

When I set the debug parameters and prepare to view relevant information, I expect to be able to see some object information with a deeper nesting level more intuitively.

before after
image image

Copy link

stackblitz bot commented Oct 5, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@bluwy
Copy link
Member

bluwy commented Oct 5, 2024

Could it be set for the config loading specifically only? I'm not sure if Vite should change the default depth as that might expand other logs.

@btea
Copy link
Collaborator Author

btea commented Oct 5, 2024

That makes sense, it seems that adding a new configuration alone will have the least impact.

*
* https://nodejs.org/api/util.html#utilinspectobject-options
*/
debugDepth?: string | undefined
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The environment variable stores a string, and the util.inspect option accepts a number. I am not sure whether the type here should be set to a number or a string. Currently, it is set to a string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants