quit in ipdb does not immediately exit the debugger

Bug #1711741 reported by Brian Murray on 2017-08-18
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ipython (Debian)
New
Unknown
ipython (Ubuntu)
Medium
Unassigned

Bug Description

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.

Brian Murray (brian-murray) wrote :

The upstream fix is available here:

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

tags: added: artful
Changed in ipython (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Changed in ipython (Debian):
status: Unknown → New
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.