[Lldb-commits] [lldb] [lldb-dap] Add clipboard context support (PR #170644)

John Harrison via lldb-commits lldb-commits at lists.llvm.org
Tue Dec 16 09:23:16 PST 2025


================
@@ -836,7 +837,10 @@ std::string VariableDescription::GetResult(protocol::EvaluateContext context) {
   // Try the SBValue::GetDescription(), which may call into language runtime
   // specific formatters (see ValueObjectPrinter).
   lldb::SBStream stream;
-  v.GetDescription(stream);
+  if (context == protocol::eEvaluateContextRepl)
----------------
ashgti wrote:

What does the short description look like?

It could be useful when you copy / paste to have context around the value copied, e.g. `(int[]) foo = {1, 2, 3}` gives me some additional context compared to just `{1, 2, 3}`.

https://github.com/llvm/llvm-project/pull/170644


More information about the lldb-commits mailing list