Vixen
c7401864
csharp
public sealed class AgentDebuggerView

The agent debugger: which agents there are, what the selected one is doing, and why.

Read the guide page for this →

Remarks

doc 37 § Part 5 § Shared's agent inspector, and § P7's editor panels. Five lists over one AgentDebugModel: the agents, the four sections of its snapshot, the recorded log, and whatever AiDiagnosis made of it.

⚠ It has no document and no command stack, because there is nothing here to edit. The one thing it changes is the breakpoint set, which is not part of any asset — a breakpoint is a fact about a debugging session and putting it in the .vxbt would commit it.

⚠ The findings are drawn above the log rather than beside it. "This agent changed action nine times in forty ticks" is the sentence somebody needs before they start reading forty records, and a panel that made them find it themselves would be a log viewer with a diagnosis feature nobody notices.

Fields and properties (13)

  • protected override string TagName

    The element name this type answers to when a caller does not choose one.

  • protected override bool AcceptsFocus

    Whether the focus can rest on this kind of control at all.

  • public UiElement Agents

    Every agent in the world, one row each.

  • public UiElement Header

    What the selected agent is, in one line.

  • public UiElement Doing

    What it is doing: the active path, the scored candidates, the plan.

  • public UiElement Why

    Why.

  • public UiElement Data

    Its data: the blackboard, live.

  • public UiElement Senses

    Its senses.

  • public UiElement Findings

    What is visibly wrong with it.

  • public UiElement Log

    What it has decided lately, oldest first.

  • public Button Continue

    Lets a stopped agent go.

  • public Button Open

    Opens the asset the selected agent is running, scrolled to what it is doing.

  • public AgentDebugModel? Model

    The model it is showing, or null.

Events (1)

  • public Action<Symbol, int>? Opening

    What to open, and where in it: the asset's name and the live node's index.

Methods (4)

  • protected override void OnCreated()

    Builds whatever this element is made of, once, as it joins a document.

  • public void Show(AgentDebugModel value)

    Shows a model, and follows it from then on.

  • public bool OpenAsset()

    Says which asset the selected agent is running and where in it, for whoever owns the tabs.

  • public void Refresh()

    Rebuilds every list from the model.

Used by (2)

  • AgentDebuggerViewTestsVixen.Editor.AssetEditors.Tests
  • OpenAssetTestsVixen.Editor.AssetEditors.Tests