Merge pull request #115692 from Scrawach/fix-local-const-invisible-in-debugger

Fix null values for local const in debugger
This commit is contained in:
Thaddeus Crews 2026-02-02 12:57:27 -06:00
commit 42b5f64835
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
3 changed files with 10 additions and 1 deletions

View file

@ -341,7 +341,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]);
}
}
}