quit in ipdb does not immediately exit the debugger
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ipython (Debian) |
Fix Released
|
Unknown
|
|||
ipython (Ubuntu) |
Triaged
|
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-
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-
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.
Changed in ipython (Debian): | |
status: | Unknown → New |
Changed in ipython (Debian): | |
status: | New → Fix Released |
The upstream fix is available here:
https:/ /github. com/ipython/ ipython/ pull/10009