From c07991ef36f8074897aa6082d6d9aebbde4d41c8 Mon Sep 17 00:00:00 2001 From: Ricardo Subtil Date: Sun, 3 Mar 2024 11:21:46 +0000 Subject: [PATCH] Add missing `variablesReference` field to DAP `evaluate` request --- editor/debugger/debug_adapter/debug_adapter_parser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/debugger/debug_adapter/debug_adapter_parser.cpp b/editor/debugger/debug_adapter/debug_adapter_parser.cpp index e8546810106..5009de4ac4e 100644 --- a/editor/debugger/debug_adapter/debug_adapter_parser.cpp +++ b/editor/debugger/debug_adapter/debug_adapter_parser.cpp @@ -485,6 +485,7 @@ Dictionary DebugAdapterParser::req_evaluate(const Dictionary &p_params) const { String value = EditorDebuggerNode::get_singleton()->get_var_value(args["expression"]); body["result"] = value; + body["variablesReference"] = 0; return response; }