From 90fcb31fa2a84da17dce02e0651ff58f3a90b85a Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sat, 1 Sep 2018 18:57:14 +0300 Subject: [PATCH] Qt Creator Debugging Helpers --HG-- branch : release --- .hgignore | 2 ++ scripts/personaltypes.py | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 scripts/personaltypes.py diff --git a/.hgignore b/.hgignore index fd84ad7ab..997fbc089 100644 --- a/.hgignore +++ b/.hgignore @@ -162,3 +162,5 @@ $RECYCLE.BIN/ # Understand IDE file *.udb + +__pycache__ diff --git a/scripts/personaltypes.py b/scripts/personaltypes.py new file mode 100644 index 000000000..cf90e2f08 --- /dev/null +++ b/scripts/personaltypes.py @@ -0,0 +1,13 @@ +from dumper import * + +""" +Qt Creator Debugging Helpers +""" + +def qdump__VSAPoint(d, value): + d.putValue('(%s, %s)' % (value.split('dd'))) + d.putPlainChildren(value) + +def qdump__PieceNodeAngle(d, value): + d.putValue(value.cast(value.type.name).displayEnum()) + d.putNumChild(0)