Hacker News new | ask | show | jobs
by jphackworth 5298 days ago
Very interesting. I would love to see this for other programming languages, especially Ruby (probably fairly easy) or Objective-C (may be quite hard).
6 comments

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.)

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.
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
For ObjC:

https://github.com/albertz/Pyjector (and then access the ObjC runtime via the Python ObjC bridge)

https://github.com/albertz/FScriptAnywhereSIMBL

Or Cycript, which all of us iOS hackers use. ;P

http://www.cycript.org/ http://iphonedevwiki.net/index.php/Cycript

With Perl you would use Enbugger & gdb using these instructions: https://metacpan.org/module/Enbugger#From-gdb
Id like to see it in bash, all i know now is to use the +x option but you need to do it before its run