I recently learned you can do a similar thing with C/C++ too. Programmatically raise a SIGINT when running under gdb, and gdb will intercept that signal, at which point you can step through the code.
http://popcorntime.io/ does pretty good torrent streaming already, the challenge would be to offer a similar service that is not illegal and where users can pay.