Skip to content
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

debugger does not print error message by default in 0.11 #690

Closed
jorgsk opened this issue Aug 10, 2011 · 3 comments
Closed

debugger does not print error message by default in 0.11 #690

jorgsk opened this issue Aug 10, 2011 · 3 comments
Labels
Milestone

Comments

@jorgsk
Copy link

jorgsk commented Aug 10, 2011

With pdb OFF

In [10]: some_variable
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
/home/jorgsk/ in ()
----> 1 some_variable

NameError: name 'some_variable' is not defined

As expected.

With pdb ON

In [12]: some_variable
> (1)()
     -1 some_variable

There is no error message. I have to quit with 'q':

ipdb> q
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
/home/jorgsk/ in ()
----> 1 some_variable

NameError: name 'some_variable' is not defined

I think the error message should be given when entering the debugging mode, or is this an intended behavior in 0.11?

@jni
Copy link

jni commented Aug 15, 2011

I'm seeing this issue as well, and it didn't exist in iPython 0.10. It's extremely irritating. Now I have to always hit the error at least twice: once to see what the error actually is, and another to debug it with the automated pdb invocation.

@fperez
Copy link
Member

fperez commented Sep 8, 2011

yup, definitely a bug. As a workaround in the meantime, you can turn pdb off, and type manually %debug when you want to enter debug mode. At least then you'll see the traceback. But we do need to fix this one, thanks for the report!

@minrk
Copy link
Member

minrk commented Oct 18, 2011

closed by #876

mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants