Re:Interactive shell to a running Python process
by jphackworth on Sunday December 11, 2011 @06:45PM
(#3341528)
Very interesting. I would love to see this for other programming languages, especially Ruby (probably fairly easy) or Objective-C (may be quite hard).
[ Parent
| on HN ]
Re:Interactive shell to a running Python process
by rue on Sunday December 11, 2011 @09:09PM
(#3341924)
Ruby's had the much more featureful Pry for some time now: http://github.com/pry/pry.
(And there have been various projects to provide some sub-capabilities for years.)
Re:Interactive shell to a running Python process
by mcantelon on Sunday December 11, 2011 @08:35PM
(#3341823)
It's dead easy in Node using the REPL module (http://nodejs.org/docs/v0.6.5/api/repl.html). I've used this to debug weird async issues.
Re:Interactive shell to a running Python process
by Xuzz on Sunday December 11, 2011 @07:07PM
(#3341589)
Objective-C also has Cycript at http://cycript.org/, which has a hybrid syntax of JavaScript and Objective-C and supports injecting into any running process.b
Re:Interactive shell to a running Python process
by albertzeyer on Sunday December 11, 2011 @06:58PM
(#3341558)
For ObjC:
https://github.com/albertz/Pyjector (and then access the ObjC runtime via the Python ObjC bridge)
Re:Interactive shell to a running Python process
by saurik on Sunday December 11, 2011 @07:07PM
(#3341587)
Or Cycript, which all of us iOS hackers use. ;P
http://www.cycript.org/ http://iphonedevwiki.net/index.php/Cycript
Re:Interactive shell to a running Python process
by draegtun on Monday December 12, 2011 @04:12AM
(#3342926)
With Perl you would use Enbugger & gdb using these instructions: https://metacpan.org/module/Enbugger#From-gdb