Fix null values for local const in debugger

This commit is contained in:
scrawach 2026-01-31 23:19:26 +03:00
parent 89cea14398
commit f45bf82ae7
3 changed files with 10 additions and 1 deletions

View file

@ -345,7 +345,12 @@ void GDScriptLanguage::debug_get_stack_level_locals(int p_level, List<String> *p
f->debug_get_stack_member_state(*cl->line, &locals);
for (const Pair<StringName, int> &E : locals) {
p_locals->push_back(E.first);
p_values->push_back(cl->stack[E.second]);
if (f->constant_map.has(E.first)) {
p_values->push_back(f->constant_map[E.first]);
} else {
p_values->push_back(cl->stack[E.second]);
}
}
}