Show More
@@ -1,47 +1,2 b'' | |||||
1 | IPython debugger (IPdb) now supports the number of context lines for the |
|
1 | IPython debugger (IPdb) now supports the number of context lines for the | |
2 | ``where`` (and ``w``) commands. The `context` keyword is also available in various APIs. |
|
2 | ``where`` (and ``w``) commands. The `context` keyword is also available in various APIs. | |
3 |
|
||||
4 | .. code:: |
|
|||
5 |
|
||||
6 | In [2]: def foo(): |
|
|||
7 | ...: 1 |
|
|||
8 | ...: 2 |
|
|||
9 | ...: 3 |
|
|||
10 | ...: 4 |
|
|||
11 | ...: 5 |
|
|||
12 | ...: raise ValueError('6 is not acceptable') |
|
|||
13 | ...: 7 |
|
|||
14 | ...: 8 |
|
|||
15 | ...: 9 |
|
|||
16 | ...: 10 |
|
|||
17 | ...: |
|
|||
18 |
|
||||
19 | In [3]: foo() |
|
|||
20 | ---------------------------------------------------- |
|
|||
21 | ValueError Traceback (most recent call last) |
|
|||
22 | <ipython-input-3> in <module>() |
|
|||
23 | ----> 1 foo() |
|
|||
24 |
|
||||
25 | <ipython-input-2> in foo() |
|
|||
26 | 5 4 |
|
|||
27 | 6 5 |
|
|||
28 | ----> 7 raise ValueError('6 is not acceptable') |
|
|||
29 | 8 7 |
|
|||
30 | 9 8 |
|
|||
31 |
|
||||
32 | ValueError: 6 is not acceptable |
|
|||
33 |
|
||||
34 | In [4]: debug |
|
|||
35 | > <ipython-input-2>(7)foo() |
|
|||
36 | 5 4 |
|
|||
37 | 6 5 |
|
|||
38 | ----> 7 raise ValueError('6 is not acceptable') |
|
|||
39 | 8 7 |
|
|||
40 | 9 8 |
|
|||
41 |
|
||||
42 | ipdb> where 1 |
|
|||
43 | <ipython-input-3>(1)<module>() |
|
|||
44 | ----> 1 foo() |
|
|||
45 |
|
||||
46 | > <ipython-input-2>(7)foo() |
|
|||
47 | ----> 7 raise ValueError('6 is not acceptable') |
|
General Comments 0
You need to be logged in to leave comments.
Login now