浏览代码

Merge pull request #71093 from Banderi/debugger_locals_3.x

[3.x] Fix local variables not showing when breaking on final line
Rémi Verschelde 2 年之前
父节点
当前提交
106bfce7f3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/gdscript/gdscript_function.cpp

+ 1 - 1
modules/gdscript/gdscript_function.cpp

@@ -1651,7 +1651,7 @@ void GDScriptFunction::debug_get_stack_member_state(int p_line, List<Pair<String
 	Map<StringName, _GDFKC> sdmap;
 	Map<StringName, _GDFKC> sdmap;
 	for (const List<StackDebug>::Element *E = stack_debug.front(); E; E = E->next()) {
 	for (const List<StackDebug>::Element *E = stack_debug.front(); E; E = E->next()) {
 		const StackDebug &sd = E->get();
 		const StackDebug &sd = E->get();
-		if (sd.line > p_line) {
+		if (sd.line >= p_line) {
 			break;
 			break;
 		}
 		}