config: Add SERVO_DIAGNOSTICS environment variable for diagnostic options#41013
Merged
atbrakhi merged 1 commit intoservo:mainfrom Dec 4, 2025
Merged
config: Add SERVO_DIAGNOSTICS environment variable for diagnostic options#41013atbrakhi merged 1 commit intoservo:mainfrom
SERVO_DIAGNOSTICS environment variable for diagnostic options#41013atbrakhi merged 1 commit intoservo:mainfrom
Conversation
Member
Author
Contributor
|
I wonder if it would be good to have that somewhere in the servo book. |
Member
Author
I am sure it will be helpful. I will add it |
mrobinson
reviewed
Dec 3, 2025
Member
mrobinson
left a comment
There was a problem hiding this comment.
Looks good, but I think you can simplify this a bit. Thanks!
2ca43a7 to
b59dff3
Compare
Signed-off-by: atbrakhi <[email protected]>
b59dff3 to
a43dd72
Compare
github-merge-queue bot
pushed a commit
to servo/book
that referenced
this pull request
Dec 18, 2025
Add documentation for `SERVO_DIAGNOSTICS`. See [#41013](servo/servo#41013) Signed-off-by: atbrakhi <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With this change can now configure diagnostic logging via the
SERVO_DIAGNOSTICSenvironment variable in addition to the existing -Z command-line flag.The environment variable accepts the same comma-separated options as -Z (e.g.,
SERVO_DIAGNOSTICS=style-tree,display-list). The help option works from both sources and will display all available diagnostic flags.Environment variable parsing is disabled in production builds
Testing: Tested locally for release, debug and production build to make sure it is disabled for production
Fixes: Part of #40863