lmacken / pyrasite

Inject code into running Python processes

Home Page:http://pyrasite.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inject/UnInject some code in anywhere

alex8224 opened this issue · comments

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

Pyrasite currently does not have the ability to inject itself into specific parts of the stack, but it is a feature I would welcome.

Tks a lot.