MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / get_stack_variable

Method get_stack_variable

editor/debugger/editor_debugger_inspector.cpp:432–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430}
431
432String EditorDebuggerInspector::get_stack_variable(const String &p_var) {
433 for (KeyValue<StringName, TypedDictionary<uint64_t, Variant>> &E : variables->prop_values) {
434 String v = E.key.operator String();
435 if (v.get_slicec('/', 1) == p_var) {
436 return variables->get_variant(v);
437 }
438 }
439 return String();
440}

Callers 1

get_var_valueMethod · 0.80

Calls 4

get_slicecMethod · 0.80
get_variantMethod · 0.80
StringClass · 0.50
StringMethod · 0.45

Tested by

no test coverage detected