Show More
@@ -100,7 +100,11 b' def test_ipdb_magics():' | |||||
100 | >>> with PdbTestInput([ |
|
100 | >>> with PdbTestInput([ | |
101 | ... 'pdef example_function', |
|
101 | ... 'pdef example_function', | |
102 | ... 'pdoc ExampleClass', |
|
102 | ... 'pdoc ExampleClass', | |
|
103 | ... 'up', | |||
|
104 | ... 'down', | |||
|
105 | ... 'list', | |||
103 | ... 'pinfo a', |
|
106 | ... 'pinfo a', | |
|
107 | ... 'll', | |||
104 | ... 'continue', |
|
108 | ... 'continue', | |
105 | ... ]): |
|
109 | ... ]): | |
106 | ... trigger_ipdb() |
|
110 | ... trigger_ipdb() | |
@@ -118,12 +122,35 b' def test_ipdb_magics():' | |||||
118 | Docstring for ExampleClass. |
|
122 | Docstring for ExampleClass. | |
119 | Init docstring: |
|
123 | Init docstring: | |
120 | Docstring for ExampleClass.__init__ |
|
124 | Docstring for ExampleClass.__init__ | |
|
125 | ipdb> up | |||
|
126 | > <doctest ...>(11)<module>() | |||
|
127 | 9 'continue', | |||
|
128 | 10 ]): | |||
|
129 | ---> 11 trigger_ipdb() | |||
|
130 | <BLANKLINE> | |||
|
131 | ipdb> down | |||
|
132 | None | |||
|
133 | > <doctest ...>(3)trigger_ipdb() | |||
|
134 | 1 def trigger_ipdb(): | |||
|
135 | 2 a = ExampleClass() | |||
|
136 | ----> 3 debugger.Pdb().set_trace() | |||
|
137 | <BLANKLINE> | |||
|
138 | ipdb> list | |||
|
139 | 1 def trigger_ipdb(): | |||
|
140 | 2 a = ExampleClass() | |||
|
141 | ----> 3 debugger.Pdb().set_trace() | |||
|
142 | <BLANKLINE> | |||
121 | ipdb> pinfo a |
|
143 | ipdb> pinfo a | |
122 | Type: ExampleClass |
|
144 | Type: ExampleClass | |
123 | String form: ExampleClass() |
|
145 | String form: ExampleClass() | |
124 | Namespace: Local... |
|
146 | Namespace: Local... | |
125 | Docstring: Docstring for ExampleClass. |
|
147 | Docstring: Docstring for ExampleClass. | |
126 | Init docstring: Docstring for ExampleClass.__init__ |
|
148 | Init docstring: Docstring for ExampleClass.__init__ | |
|
149 | ipdb> ll | |||
|
150 | 1 def trigger_ipdb(): | |||
|
151 | 2 a = ExampleClass() | |||
|
152 | ----> 3 debugger.Pdb().set_trace() | |||
|
153 | <BLANKLINE> | |||
127 | ipdb> continue |
|
154 | ipdb> continue | |
128 |
|
155 | |||
129 | Restore previous trace function, e.g. for coverage.py |
|
156 | Restore previous trace function, e.g. for coverage.py |
General Comments 0
You need to be logged in to leave comments.
Login now