mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-19 19:10:17 +00:00
fix bug : rerefrence invaild
This commit is contained in:
parent
28c079cd8c
commit
e1d0a9f94d
@ -282,8 +282,8 @@ inline static c11_debugger_scope_index append_new_scope(int frameid) {
|
||||
py_Frame* requested_frame = c11__getitem(py_Frame*, &debugger.py_frames, frameid);
|
||||
int base_index = py_list_len(python_vars);
|
||||
py_Ref new_locals = py_list_emplace(python_vars);
|
||||
py_Ref new_globals = py_list_emplace(python_vars);
|
||||
py_Frame_newlocals(requested_frame, new_locals);
|
||||
py_Ref new_globals = py_list_emplace(python_vars);
|
||||
py_Frame_newglobals(requested_frame, new_globals);
|
||||
c11_debugger_scope_index result = {.locals_ref = base_index, .globals_ref = base_index + 1};
|
||||
return result;
|
||||
|
Loading…
x
Reference in New Issue
Block a user