Graph-talk Debug API

class gt.debug.ProcessDebugger(process=None, log=False)

Bases: gt.core.Handler

Process analyzer/debugger, use to see the process logs or to emulate the reply from a certain element.

__init__(process=None, log=False)

Creates the new debugger.

Parameters:
  • process (Process.) – attach to the specified process.
  • log (bool.) – start logging the process queries.
attach(process)

Attaches the debugger to the specified process events.

Parameters:process (Process.) – the process to attach.
detach()

Detaches the debugger from the process.

clear_points()

Clears the reply and log hooks.

reply_at(abstract, reply)

Emulates the reply.

Parameters:
  • abstract (Abstract.) – element to emulate the reply.
  • reply – reply to return on the process’ query.
show_log()

Adds the show log hook to the query event.

hide_log()

Removes the show log hook.

do_reply_at(**context)

Reply event: returns the specified reply to the process.

is_log(**context)

Log event: prints the process’ query and the element’s reply on it.

Previous topic

Graph-talk Core API

This Page