Mercurial > hg
comparison tests/test-debugcommands.t @ 31315:78ac7061f840
util: add debugstacktrace depth limit
Useful when you don't care about the start of the stack, but only want to see
the last entries.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 14 Jan 2015 01:15:26 +0100 |
parents | 7c877cbf30d6 |
children | ccef71de7d41 |
comparison
equal
deleted
inserted
replaced
31314:7c877cbf30d6 | 31315:78ac7061f840 |
---|---|
120 > g() | 120 > g() |
121 > def g(): | 121 > def g(): |
122 > dst('hello from g\\n', skip=1) | 122 > dst('hello from g\\n', skip=1) |
123 > h() | 123 > h() |
124 > def h(): | 124 > def h(): |
125 > dst('hi ...\\nfrom h hidden in g', 1) | 125 > dst('hi ...\\nfrom h hidden in g', 1, depth=2) |
126 > f() | 126 > f() |
127 > EOF | 127 > EOF |
128 $ python debugstacktrace.py | 128 $ python debugstacktrace.py |
129 stacktrace at: | 129 stacktrace at: |
130 debugstacktrace.py:10 in * (glob) | 130 debugstacktrace.py:10 in * (glob) |
132 hello from g at: | 132 hello from g at: |
133 debugstacktrace.py:10 in * (glob) | 133 debugstacktrace.py:10 in * (glob) |
134 debugstacktrace.py:4 in f | 134 debugstacktrace.py:4 in f |
135 hi ... | 135 hi ... |
136 from h hidden in g at: | 136 from h hidden in g at: |
137 debugstacktrace.py:10 in * (glob) | 137 debugstacktrace.py:4 in f |
138 debugstacktrace.py:4 in f | 138 debugstacktrace.py:7 in g |
139 debugstacktrace.py:7 in g |