Fix null values for local const in debugger
This commit is contained in:
parent
89cea14398
commit
f45bf82ae7
3 changed files with 10 additions and 1 deletions
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue