[Lldb-commits] [lldb] [lldb-dap] Improving 'variables' hover requests. (PR #146773)

via lldb-commits lldb-commits at lists.llvm.org
Thu Jul 3 11:16:48 PDT 2025


jimingham wrote:

> > I don't know how you are doing this, but if you are treating "hover over" requests as expressions and presenting the result of some real expression evaluation, you have to be quite careful about what you evaluate.
> 
> The corresponding DAP request is called "expression" which is somewhat confusing. The request includes a "context" (such as "repl" or "hover") which allows us to do something different. Except for "repl", we always try `GetValueForVariablePath` first, and only fall back to `EvaluateExpression` if that fails. The exception is "hover" for which we don't do the fallback. So I think we handle this correctly.

Excellent!

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


More information about the lldb-commits mailing list