Table of Contents

Method Command

Namespace
Terminal.Gui.Tracing
Assembly
Terminal.Gui.dll

Command(View, Command, CommandRouting, string, string?, string)

Traces a command routing step.

[Conditional("DEBUG")]
public static void Command(View view, Command command, CommandRouting routing, string phase, string? message = null, string method = "")

Parameters

view View

The view where routing is occurring.

command Command

The command being routed.

routing CommandRouting

The current routing mode.

phase string

The phase of routing (e.g., "Entry", "Exit", "Handler", "Event", "Routing").

message string

Optional additional context.

method string

Automatically captured caller method name.

Command(View, ICommandContext?, string, string?, string)

Traces a command routing step from a context.

[Conditional("DEBUG")]
public static void Command(View view, ICommandContext? ctx, string phase, string? message = null, string method = "")

Parameters

view View

The view where routing is occurring.

ctx ICommandContext

The command context (provides command and routing info).

phase string

The phase of routing (e.g., "Entry", "Exit", "Handler", "Event", "Routing").

message string

Optional additional context.

method string

Automatically captured caller method name.

Command(View, string, string?, string)

Traces a command routing step from a context.

[Conditional("DEBUG")]
public static void Command(View view, string phase, string? message = null, string method = "")

Parameters

view View

The view where routing is occurring.

phase string

The phase of routing (e.g., "Entry", "Exit", "Handler", "Event", "Routing").

message string

Optional additional context.

method string

Automatically captured caller method name.