class

VisualScriptDebugger

Module
VisualScripting
Header
#include "VisualScripting/VisualScriptDebugger.h"
Namespace
Mowo

Public functions

ReturnsNameDescription
voidSetEnabled
boolIsEnabled
voidAddSessionExternal debug sessions (the DAP server) hold the debugger open independently of the editor's SetEnabled toggle: the effective state is "editor asked for it OR at least one session is attached".
voidRemoveSession
int32_tSessionCount
boolIsPaused
uint64_tPauseSerial
const std::vector<VisualScriptDebugFrame>&Frames
const VisualScriptContext&PausedContext
const VisualScriptGraph*PausedGraph
intPausedNode
std::stringPausedClassName
std::stringPausedGraphName
std::stringPausedFunctionName
boolCollectPulseNodes
voidRequestContinue
voidRequestStepOver
voidRequestStepInto
voidRequestStepOutRuns until control leaves the innermost paused frame (the DAP stepOut).
voidRequestBreakNextAsynchronous break: arms a one-shot stop on the next exec node any graph reaches.
boolIsBreakNextArmed
boolHasPendingResume
boolPumpResume
voidCancelPaused
boolEvaluateOutput
boolEvaluateInput
boolEvaluateExpressionVisual Script expression text (the grammar breakpoint conditions use) evaluated in a paused frame.
boolSetVariableWrites a variable of a paused frame: a function frame's param/local, or (instanceScope, or no such local) the instance variable store.
uint64_tLogpointCountLogpoint output.
std::vector<std::string>LogpointMessagesSince
doubleNow
std::vector<VisualScriptTraceEntry>RecentTrace
std::stringResolveGraphName
std::stringFormatValue

Function details

SetEnabled

C++
static void SetEnabled(bool enabled)

IsEnabled

C++
static bool IsEnabled()

AddSession

C++
static void AddSession()

External debug sessions (the DAP server) hold the debugger open independently of the editor's SetEnabled toggle: the effective state is "editor asked for it OR at least one session is attached". Without the refcount the editor's per-tick toggle would disable an attached IDE.

RemoveSession

C++
static void RemoveSession()

SessionCount

C++
static int32_t SessionCount()

IsPaused

C++
static bool IsPaused()

PauseSerial

C++
static uint64_t PauseSerial()

Frames

C++
static const std::vector<VisualScriptDebugFrame>& Frames()

PausedContext

C++
static const VisualScriptContext& PausedContext()

PausedGraph

C++
static const VisualScriptGraph* PausedGraph()

PausedNode

C++
static int PausedNode()

PausedClassName

C++
static std::string PausedClassName()

PausedGraphName

C++
static std::string PausedGraphName()

PausedFunctionName

C++
static std::string PausedFunctionName()

CollectPulseNodes

C++
static bool CollectPulseNodes(const std::string& className, const std::string& graphName, double maxAgeSeconds, std::vector<int>& out)

RequestContinue

C++
static void RequestContinue()

RequestStepOver

C++
static void RequestStepOver()

RequestStepInto

C++
static void RequestStepInto()

RequestStepOut

C++
static void RequestStepOut()

Runs until control leaves the innermost paused frame (the DAP stepOut). At the outermost frame there is nothing to step out of, so it behaves like Continue.

RequestBreakNext

C++
static void RequestBreakNext()

Asynchronous break: arms a one-shot stop on the next exec node any graph reaches. No effect while already paused.

IsBreakNextArmed

C++
static bool IsBreakNextArmed()

HasPendingResume

C++
static bool HasPendingResume()

PumpResume

C++
static bool PumpResume()

CancelPaused

C++
static void CancelPaused()

EvaluateOutput

C++
static bool EvaluateOutput(size_t frameIdx, int node, int pin, VisualScriptValue& out)

EvaluateInput

C++
static bool EvaluateInput(size_t frameIdx, int node, int inputIdx, VisualScriptValue& out)

EvaluateExpression

C++
static bool EvaluateExpression(size_t frameIdx, const std::string& expression, VisualScriptValue& out, std::string* outError = nullptr)

Visual Script expression text (the grammar breakpoint conditions use) evaluated in a paused frame. An identifier that names no variable, param or local is an error rather than a silent default, so a typo never reads as 0.

SetVariable

C++
static bool SetVariable(size_t frameIdx, const std::string& name, const std::string& valueText, bool instanceScope, VisualScriptValue* outNewValue = nullptr, std::string* outError = nullptr)

Writes a variable of a paused frame: a function frame's param/local, or (instanceScope, or no such local) the instance variable store. The text is coerced to the variable's current type — numbers and bools go through the expression evaluator, so "Health - 10" works; vectors take "x, y, z"; strings take the text verbatim (surrounding quotes stripped).

LogpointCount

C++
static uint64_t LogpointCount()

Logpoint output. Every consumer (the editor, each DAP session) keeps its own cursor, so one reader never eats another's lines. Only the most recent lines are retained.

LogpointMessagesSince

C++
static std::vector<std::string> LogpointMessagesSince(uint64_t& cursor)

Now

C++
static double Now()

RecentTrace

C++
static std::vector<VisualScriptTraceEntry> RecentTrace(double maxAgeSeconds)

ResolveGraphName

C++
static std::string ResolveGraphName(const VisualScriptClass* cls, const VisualScriptGraph* graph)

FormatValue

C++
static std::string FormatValue(const VisualScriptValue& v)
Generated from VisualScripting/VisualScriptDebugger.h via visualscripting.json · Nov 5, 2026Version 1.0.0