##// END OF EJS Templates
Merge pull request #9076 from Carreau/test_debugger...
Min RK -
r21940:d5bd4f46 merge
parent child Browse files
Show More
@@ -100,7 +100,11 b' def test_ipdb_magics():'
100 100 >>> with PdbTestInput([
101 101 ... 'pdef example_function',
102 102 ... 'pdoc ExampleClass',
103 ... 'up',
104 ... 'down',
105 ... 'list',
103 106 ... 'pinfo a',
107 ... 'll',
104 108 ... 'continue',
105 109 ... ]):
106 110 ... trigger_ipdb()
@@ -118,12 +122,35 b' def test_ipdb_magics():'
118 122 Docstring for ExampleClass.
119 123 Init docstring:
120 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 143 ipdb> pinfo a
122 144 Type: ExampleClass
123 145 String form: ExampleClass()
124 146 Namespace: Local...
125 147 Docstring: Docstring for ExampleClass.
126 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 154 ipdb> continue
128 155
129 156 Restore previous trace function, e.g. for coverage.py
General Comments 0
You need to be logged in to leave comments. Login now