Update core.c

This commit is contained in:
blueloveTH 2025-08-09 15:42:04 +08:00
parent d5d4a5f738
commit 1b623ce2f8

View File

@ -1,8 +1,5 @@
#include "pocketpy/interpreter/frame.h"
#include "pocketpy/pocketpy.h"
#include <ctype.h>
#include "pocketpy/debugger/core.h"
@ -268,7 +265,7 @@ bool c11_debugger_unfold_var(int var_id, c11_sbuf* buffer) {
// 3. construct DAP JSON and extend python_vars
py_Ref dap_obj = py_pushtmp();
py_newdict(dap_obj); // 先创建字典
py_newdict(dap_obj);
const char* dap_code =
"_2['variables'] = []\n"
"var_ref = _1\n"