[Lldb-commits] [PATCH] D115974: [formatters] Improve documentation

Jim Ingham via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Dec 17 18:02:03 PST 2021


jingham added a comment.

Those are useful tips, thanks!



================
Comment at: lldb/docs/use/variable.rst:77
+which is what the user would expect from a good debugger.
+
 There are several features related to data visualization: formats, summaries,
----------------
This is a nice example, but we should also/instead use an example with `v` for two reasons.

First, `p` is super overkill as a way to print a local variable called a_deque, `v` is the preferred tool.
Second, `v` actually understands synthetic children, so you can also do:

(lldb) v a_deque[0]

if you only want to see the first element, etc.

This can be convenient, and may not be as widely known.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D115974/new/

https://reviews.llvm.org/D115974



More information about the lldb-commits mailing list