Inject/UnInject some code in anywhere
alex8224 opened this issue · comments
Alexzhang commented
Hi
pyrasite can inject some code anywhere?
like Btrace (https://kenai.com/projects/btrace/pages/UserGuide)
for example , I have a function like:
def index(request):
for k,v in request.iteritems():
#inject code there, like: import pdb;pdb.set_trace()
print(k,v)
when debug done, remove injected code.
Tks
Luke Macken commented
Pyrasite currently does not have the ability to inject itself into specific parts of the stack, but it is a feature I would welcome.
Alexzhang commented
Tks a lot.