Open mschwager opened 3 years ago
I found this amazing library by @lebedov -- i think this is closely related to what you might be looking for?
https://github.com/lebedov/ripdb/blob/master/ripdb/__init__.py
Check out https://github.com/kmaork/madbg , a library I made for this exact purpose with some additional features like attaching to a running process and opening a debugger
@kmaork Thanks for the link to your library!
Hi there,
Thanks so much for creating
ipdb
, I use it every day.I'd like to create a Python script that has data piped to it then drops into an
ipdb
shell. This is tricky because we have to re-purpose stdin during the execution of the script. I was able to successfully read from stdin, then drop into a shell, but the shell is lacking autocompletion, arrow keys, and other readline niceties.Here's my script:
I'm then successfully dropped into a shell with the piped data:
But I don't have any
ipdb
/IPython niceties in the shell. Is there a good way to achieve this?Here are some resources I was using when trying this out:
I also tried various IPython capabilities like the following, but I could get those to work either:
Which lead me to the following issues, which seem to be similar: