Browse Source

Add missing `variablesReference` field to DAP `evaluate` request

(cherry picked from commit c07991ef36f8074897aa6082d6d9aebbde4d41c8)
Ricardo Subtil 1 năm trước cách đây
mục cha
commit
6451422e72
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      editor/debugger/debug_adapter/debug_adapter_parser.cpp

+ 1 - 0
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;
 }