-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Importing the module breaks the interpreter #120
Comments
Could you provide a simple test case? |
@gnebehay "import ipdb" in /usr/bin/python |
Seems reproducable. Creating the IPython terminal should probably be deferred until debugging actually starts. |
@gnebehay , I noticed that when you executed I am trying to figure out how to I have the following statement in my python code
If I load the and then attempt to run my python function which contains the set_trace() |
This is actually due to my IPython profile, where I use the package to autoreload files while I am using the IPython shell. These are the relevant settings: https://github.com/gnebehay/common/blob/master/dotfiles/.ipython/profile_default/ipython_config.py I don't think that this package can swap code on-the-fly during debugging, but maybe there are other packages for this purpose. |
Thanks for the clarification. I will see if I can find any.. |
I think this has been fixed, probably in 0.13.7? |
When the module is imported in the python interpreter, which can be done not only explicitly, but also just by doing e.g.
help(modules)
, some kind ofipython
shell replaces the interpreter. If that can be avoided it is a good thing to do.The text was updated successfully, but these errors were encountered: