blob: ddeff75dc6217624ef1aa12cea1c63f0fdcce104 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/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 !"
print debugger
|