Repository navigation
[wasm][debugger] Escape values in expression evaluation scripts - #10217
Merged
Merged
Conversation
…generated C# so debuggee values remain data during expression evaluation.
|
Azure Pipelines: Successfully started running 1 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The focused changes consistently prevent debuggee values from altering generated C# syntax.
0 open findings
What changed in this PR
Ports debugger expression-evaluation escaping fixes to main.
Changes:
- Adds Roslyn-based C# string and character literal formatting.
- Escapes debuggee values and object metadata before generating scripts.
| File | Description |
|---|---|
src/runtime/src/mono/browser/debugger/BrowserDebugProxy/EvaluateExpression.cs |
Safely formats values embedded in generated C#. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
dariatiurina
approved these changes
Oct 14, 2026
ilonatommy
enabled auto-merge
October 14, 2026 11:32
Member
|
Failure is unrelated: #10115 |
akoeplinger
approved these changes
Oct 14, 2026
akoeplinger
disabled auto-merge
October 14, 2026 14:05
This was referenced Oct 19, 2026
This was referenced Oct 27, 2026
This was referenced Oct 28, 2026
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.
Applying the changes from #10198, #10186 to main.
Use Roslyn literal formatting for strings and characters embedded in generated C# so debuggee values remain data during expression evaluation.