[Lldb-commits] [lldb] [lldb-dap] Emit declarations along with variables (PR #74865)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Mon Dec 11 17:38:38 PST 2023
================
@@ -1101,6 +1101,29 @@ std::string CreateUniqueVariableNameForDisplay(lldb::SBValue v,
// can use this optional information to present the
// children in a paged UI and fetch them in chunks."
// }
+// "declaration": {
+// "type": "object | undefined",
+// "description": "Extension to the protocol that indicates the source
+// location where the variable was declared. This value
+// might not be present if no declaration is available.",
+// "properties": {
+// "path": {
+// "type": "string | undefined",
+// "description": "The source file path where the variable was
+// declared."
+// },
+// "line": {
+// "type": "number | undefined",
+// "description": "The 1-indexed source line where the variable was
+// declared."
+// },
+// "column": {
+// "type": "number | undefined",
+// "description": "The 1-indexed source column where the variable was
+// declared."
+// }
+// }
+// }
----------------
clayborg wrote:
Can we document that is is an extension if it actually isn't part of the DAP protocol from the Microsoft website?
https://github.com/llvm/llvm-project/pull/74865
More information about the lldb-commits
mailing list