mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-23 03:39:35 -10:00
* Description of DebuggerBrowsable behavior. * Added test for browse attributes. * Corrected typos in the doc. * Added Browse Never feature. Corrected Collapse test. ToDo: RootHidden. * Draft of RootHidden solution. * Added Array to test cases as it behaves differently than Collection. * Added name concatenation to make array/list elemetns in debug window unique. * Update docs/design/mono/debugger.md Co-authored-by: Ankit Jain <[email protected]> * Applied PR review suggestions. * Added a reference to regular Browsable attribute behavior in .net. * Applied most of review suggestions. * Stopping GetFieldsValue early. * Remove unintentional change to the original code. * Do not skip fields that don't have browsable attributes. * Changing the expected behavior to match Console Application. EventHandlers are Browsable.Never by default. * Changed the place of checking if objetc is an array. * Update src/mono/wasm/debugger/DebuggerTestSuite/EvaluateOnCallFrameTests.cs Co-authored-by: Ankit Jain <[email protected]> * Removed unused variables. * Removing space and unused import. * Partially addressed @radical comments. * Addressed the comment about extension instead of Union. * Removed string cultural vunerability. * Added Properties dictionary, the same as for fields. * Fixed the bug I made by using dynamc. * Applying @radical comments about refactoring. * Corrected typo. * Added tests for properties. * Draft of changes for properties handling - never and root hidden failing. * Fix for RootHidden properties. * Added tests for static fields decorated with Browsable. * Correct a typo. * Undo merge unintentional changes. * Changing expected behavior for MulticastDelegateTest - in Console Application EventHandler is Browsable.Never by default so we should not expect it to be visible in the debug window. * Removing not relevant changes created after merge with main. * Remove file added in merge with main. * Revert "Removing not relevant changes created after merge with main." This reverts commit b1acf8b546d1b95bea101290c25ec7f15cb78799. * Revert. * Revert revert. * One broken test for custom getter. * Ugly fix to make all the tests work. * Refactored JArray aggregation to Dictionary. * Better naming. * Remove not connected to PR file. * Applied @thaystg suggestions. * Removed comments. Co-authored-by: Ankit Jain <[email protected]>
1.5 KiB
1.5 KiB
WebAssembly Debugger
Overview
The details of launching a Debugger session for a Blazor WebAssembly application is described here.
Debugger Attributes
Web Assembly Debugger supports usage of following attributes:
-
System.Diagnostics.DebuggerHidden
Decorating a method - results:
- Visual Studio Breakpoints: results in disabling all existing breakpoints in the method and no possibility to set new,enabled ones.
- Stepping In/Over: results in stepping over the line with method call.
- Call stack: method does not appear on the call stack, no access to method local variables is provided.
Decorating a method with a Debugger.Break() call inside:
- Running in the Debug mode: results in pausing the program on the line with the method call.
- Stepping In/Over: results in an additional stepping need to proceed to the next line.
-
System.Diagnostics.DebuggerDisplay
-
System.Diagnostics.DebuggerTypeProxy
-
System.Diagnostics.DebuggerBrowsable (doc)
-
Collapsed - displayed normally.
-
RootHidden:
- Simple type - not displayed in the debugger window.
- Collection / Array - the values of a collection are displayed in a flat view, using the naming convention: rootName[idx].
-
Never - not displayed in the debugger window.
-