[lldb-dev] Python type summaries

John Firebaugh john.firebaugh at gmail.com
Mon Feb 20 14:02:49 PST 2012

On Mon, Feb 20, 2012 at 1:57 PM, Enrico Granata
<granata.enrico at gmail.com> wrote:
> as for -F, it works. The problem in your sample command
> (lldb) command script import ~/ruby.py
> ready!
> (lldb) type summary add -F ruby_value VALUE
> is that it is ignoring modules. When you load a file named ruby.py, Python
> loads its contents in a module named 'ruby'.
> Hence, your function is not really named ruby_value but ruby.ruby_value

Thank you, that explains it. `type summary add -F ruby.ruby_value
VALUE` indeed works.

Maybe `type summary add -F` could issue a diagnostic when it can't
resolve the function? That probably would have pointed me in the right


More information about the lldb-dev mailing list