diff options
Diffstat (limited to 'plugins/python/exectracer/exectracer.py')
| -rw-r--r-- | plugins/python/exectracer/exectracer.py | 18 | 
1 files changed, 18 insertions, 0 deletions
| diff --git a/plugins/python/exectracer/exectracer.py b/plugins/python/exectracer/exectracer.py new file mode 100644 index 0000000..2773586 --- /dev/null +++ b/plugins/python/exectracer/exectracer.py @@ -0,0 +1,18 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +from pyoida import Plugin + + +class ExecTracer(Plugin): +    """Trace and replay debug executions.""" + +    def get_action(self): +        """Register the plugin for given actions.""" + +        return Plugin.PGA_DEBUGGER_ATTACH + +    def handle_debugger(self, debugger, action): +        """Be notify about debugger attaching or detaching.""" + +        print "Python Hello !" | 
