[IPython-dev] Python variables obscur ipdb commands

Fangohr H. H.FANGOHR at soton.ac.uk
Tue Oct 25 18:21:44 EDT 2016

I have run into exactly the same problem. It is a difficult call what is better but it is upsetting when 'n' is not moving onto the next statement but prints a value.

I'd support deactivating this convenience feature. Or maybe it should not work for variable names that shadow debugger commands? Maybe that is an inoffensive compromise?

Best wishes


Sent from smartphone

On 25 Oct 2016, at 21:20, Thomas Kluyver <takowl at gmail.com<mailto:takowl at gmail.com>> wrote:

On 25 October 2016 at 18:25, Kossak <sburczymuch+ipython at gmail.com<mailto:sburczymuch+ipython at gmail.com>> wrote:
Is this a bug that python variables obscur ipdb commands? I can't use "n" nor "next" (they return variable value) when there are variables with the same name in the code being debugged. Details are here: http://stackoverflow.com/questions/40224066/ipdb-commands-obscured-by-variables

It's a feature that was added recently, though I can imagine it may be annoying. Here's the PR that added it:

Feel free to open an issue asking that it be removed again. I don't have any strong feelings one way or the other, as I don't use the debugger much.

IPython-dev mailing list
IPython-dev at scipy.org<mailto:IPython-dev at scipy.org>

More information about the IPython-dev mailing list