pyaiml21.interpreter.debugger¶
Simple interactive AIML debugger.
This module contains a definition of an (interactive) debugger for evaluating AIML <template>. The debugger is capable of debugging only a single AIML category – not the graphmaster. To run it, use
d = Debugger(my_bot, my_session)
d.known_tags = my_bot.eval_tags
d.set_break("some_file.aiml", 15)
d.call("PREPROCESSED INPUT")
To get help and see available commands, use .help() method or “:h” or “:help” in the interactive session.
Note that without setting any breakpoints prior running the debugger immediately evaluates the response and returns.
It should also be noted, that the debugger works the same as the interpreter with regards to the recursive calls, so if the evaluation of the <aiml> caused RecursionError, the evaluation in debugger will cause it as well as long as no breakpoints are specified and the execution is stopped.
Classes
Interactive AIML debugger. |