1
0
Fork 0
mirror of https://github.com/VSadov/Satori.git synced 2025-06-08 03:27:04 +09:00
Satori/docs/design/mono/debugger.md
Ken Dale 59f2833b98
Update docs.microsoft.com usages to learn.microsoft.com (#102881)
* Update https://docs.microsoft.com to https://learn.microsoft.com

* Update http://docs.microsoft.com/ to https://learn.microsoft.com (removes trailing slash)

* Update docs.microsoft.com to https://learn.microsoft.com

* Update docs.microsoft.com to learn.microsoft.com

* Replace learn.microsoft.com/en-us/ with learn.microsoft.com/ to remove locale from urls
2024-05-31 11:27:45 -07:00

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.