Commits

Rene Bartelmus  committed a9bceee

Code cleaning. Fixed a bug with calling leash([+]).

  • Participants
  • Parent commits 2307d36
  • Branches tracing-support

Comments (0)

Files changed (1)

File prolog/builtin/tracing.py

     engine.tracewrapper.tracing = True
     scont = scont.trace_wrap(1)
     engine.tracewrapper.info("The Debugger will first creep, showing everything (trace).\n\n")
-    #if "query" in dir(scont) and scont.query is not None:
-    #    import pdb; pdb.set_trace()
-    #    fcont = fcont.trace_wrap(1, query=scont.query)
     return scont, fcont, heap
 
 @expose_builtin("notrace", unwrap_spec=[], handles_continuation=True, trace=False)
         error.throw_instantiation_error()
     optionlist = unwrap_list(optionlist)
     for o in optionlist:
-        if not o.argument_count != 1:
+        # should always be like +(all), -(fail)
+        if o.argument_count() != 1:
             error.throw_domain_error('One of (+|-) all,call,exit,fail,redo,exception', o)
         op = o.name()
         if not op in "+-":
         engine.tracewrapper.info("No leashing\n")
     else:
         engine.tracewrapper.info("Using leashing stopping at "+repr(leash)+" ports\n")
-
-
-