Commit fbdbb945 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras
Browse files

Allow easy debugging via -pdb.

parent 103d1e9e
......@@ -152,6 +152,11 @@ class Printer(RecursiveMapper):
def main():
if "-pdb" in sys.argv:
sys.argv.remove("-pdb") # pragma: no cover
import pdb # pragma: no cover pylint: disable=wrong-import-position,wrong-import-order
pdb.set_trace() # pragma: no cover
if sys.argv.count("-o") != 0:
idx = sys.argv.index("-o")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment