Add query param to check if Blazor WASM app is under debug #24972
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.
Uses a
_blazor_debug
query param flag to check if the application is currently under debug. For backwards-compat, this value defaults to true. For scenarios where it needs to be disabled, users will need to navigate tohttps://localhost:5001?_blazor_debug=false
when they first visit the page.We can update the
blazorwasm
VS Code debug experience to set this value correctly if start without debugging is set. We'll need to do the same in VS. I've pinged the VS debugging team about this.Addresses #24623