[Python-modules-team] Bug#872591: ipython: quit in ipdb does not immediately exit the debugger

Brian Murray brian at ubuntu.com
Fri Aug 18 21:24:01 UTC 2017


Package: ipython
Version: 5.1.0-3
Severity: normal
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu artful

Dear Maintainer,

There is an upstream ipdb fix which would be useful to include in the
packaged version of ipdb.

https://github.com/ipython/ipython/pull/10009

A detailed bug report with test case was also filed in Ubuntu and can be
found at http://launchpad.net/bugs/1711741.
The description, from Brian Murray, follows:

Using the following test case I'd expect that entering the quit command the code containing the ipdb import would exit immediately. This is not the case and the code continues to run. Here's a test case:

#!/usr/bin/python3

word = 'the word'
from ipdb import set_trace; set_trace()
print('bird is %s' % word)

This is the failure:

 $ ./ipdb-test.py
> /tmp/ipdb-test.py(5)<module>()
      1 #!/usr/bin/python3
      2 
      3 word = 'the word'
      4 from ipdb import set_trace; set_trace()
----> 5 print('bird is %s' % word)

ipdb> quit
bird is the word

With the fix:

 $ ./ipdb-test.py
> /tmp/ipdb-test.py(5)<module>()
      2 
      3 word = 'the word'
      4 from ipdb import set_trace; set_trace()
----> 5 print('bird is %s' % word)

ipdb> quit
Exiting Debugger.

This affects both python3 and python2.7 ipdb in Artful. Package version 5.1.0-3.

-- System Information:
Debian Release: stretch/sid
  APT prefers artful
  APT policy: (500, 'artful')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.11.0-13-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)



More information about the Python-modules-team mailing list