History log of /external/lldb/examples/python/pytracer.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8e8de5e282ee00f600d46bd52398b0d5d50775c1 07-May-2013 Enrico Granata <egranata@apple.com> Adding some LLDB-specific logic to the tracer (in a separate tracer module) to improve the quality of the output when debugging data formatters
(more improvements are necessary before this is really legible)



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@181367 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/examples/python/pytracer.py
087fd12171ada73a256a8de8966c2fb2b214cafe 07-May-2013 Enrico Granata <egranata@apple.com> First iteration of a Python tracer module
This module uses Python's sys.settrace() mechanism so setup a hook that can log every significant operation
This is a first step in providing a good debugging experience of Python embedded in LLDB
This module comprises an OO infrastructure that wraps Python's tracing and inspecting mechanisms, plus a very simple logging tracer
Output from this tracer looks like:

call print_keyword_args from <module> @ 243 args are kwargs are {'first_name': 'John', 'last_name': 'Doe'}
running print_keyword_args @ 228 locals are {'kwargs': {'first_name': 'John', 'last_name': 'Doe'}}
running print_keyword_args @ 229 locals are {'key': 'first_name', 'value': 'John', 'kwargs': {'first_name': 'John', 'last_name': 'Doe'}}
first_name = John
running print_keyword_args @ 228 locals are {'key': 'first_name', 'value': 'John', 'kwargs': {'first_name': 'John', 'last_name': 'Doe'}}
running print_keyword_args @ 229 locals are {'key': 'last_name', 'value': 'Doe', 'kwargs': {'first_name': 'John', 'last_name': 'Doe'}}
last_name = Doe
running print_keyword_args @ 228 locals are {'key': 'last_name', 'value': 'Doe', 'kwargs': {'first_name': 'John', 'last_name': 'Doe'}}
return from print_keyword_args value is None locals are {'key': 'last_name', 'value': 'Doe', 'kwargs': {'first_name': 'John', 'last_name': 'Doe'}}



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@181343 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/examples/python/pytracer.py