Show More
@@ -32,6 +32,7 b' from IPython.utils.io import capture_output' | |||||
32 | from IPython.utils.tempdir import (TemporaryDirectory, |
|
32 | from IPython.utils.tempdir import (TemporaryDirectory, | |
33 | TemporaryWorkingDirectory) |
|
33 | TemporaryWorkingDirectory) | |
34 | from IPython.utils.process import find_cmd |
|
34 | from IPython.utils.process import find_cmd | |
|
35 | from .test_debugger import PdbTestInput | |||
35 |
|
36 | |||
36 |
|
37 | |||
37 | @magic.magics_class |
|
38 | @magic.magics_class | |
@@ -602,13 +603,13 b' def doctest_precision():' | |||||
602 | def test_debug_magic(): |
|
603 | def test_debug_magic(): | |
603 | """Test debugging a small code with %debug |
|
604 | """Test debugging a small code with %debug | |
604 |
|
605 | |||
605 | In [1]: %debug print("a b") |
|
606 | In [1]: with PdbTestInput(['c']): | |
|
607 | ...: %debug print("a b") | |||
|
608 | ...: | |||
606 | NOTE: Enter 'c' at the ipdb> prompt to continue execution. |
|
609 | NOTE: Enter 'c' at the ipdb> prompt to continue execution. | |
607 | > <string>(1)<module>() |
|
610 | > <string>(1)<module>() | |
608 |
|
||||
609 | ipdb> c |
|
611 | ipdb> c | |
610 | a b |
|
612 | a b | |
611 |
|
||||
612 | In [2]: |
|
613 | In [2]: | |
613 | """ |
|
614 | """ | |
614 |
|
615 |
General Comments 0
You need to be logged in to leave comments.
Login now