From 6451422e7298699d5357d9efd91e28d8be8cdcd6 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 (cherry picked from commit c07991ef36f8074897aa6082d6d9aebbde4d41c8) --- 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 929f323e80a..fe2e54298e6 100644 --- a/editor/debugger/debug_adapter/debug_adapter_parser.cpp +++ b/editor/debugger/debug_adapter/debug_adapter_parser.cpp @@ -468,6 +468,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; }