[CalendarServer-changes] [15012] CalendarServer/trunk/contrib/tools/lldb_utils.py
source_changes at macosforge.org
source_changes at macosforge.org
Mon Jul 27 22:23:08 PDT 2015
Revision: 15012
http://trac.calendarserver.org//changeset/15012
Author: dre at apple.com
Date: 2015-07-27 22:23:08 -0700 (Mon, 27 Jul 2015)
Log Message:
-----------
Also display type of each local PyObject
Modified Paths:
--------------
CalendarServer/trunk/contrib/tools/lldb_utils.py
Modified: CalendarServer/trunk/contrib/tools/lldb_utils.py
===================================================================
--- CalendarServer/trunk/contrib/tools/lldb_utils.py 2015-07-28 02:43:19 UTC (rev 15011)
+++ CalendarServer/trunk/contrib/tools/lldb_utils.py 2015-07-28 05:23:08 UTC (rev 15012)
@@ -159,7 +159,9 @@
for i in range(numlocals):
localname = _toStr(names.GetValueForExpressionPath("->ob_item[{}]".format(i)), pystring_t)
local = frame.EvaluateExpression("PyString_AsString(PyObject_Repr(f->f_localsplus[{}]))".format(i)).summary
- print(" {} = {}".format(
+ localtype = frame.EvaluateExpression("PyString_AsString(PyObject_Repr(PyObject_Type(f->f_localsplus[{}])))".format(i)).summary
+ print("{}: {} = {}".format(
+ localtype[1:-1] if localtype else ".",
localname[1:-1] if localname else ".",
local[1:-1] if local else ".",
))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20150727/8b12f367/attachment.html>
More information about the calendarserver-changes
mailing list