9555:88f10deec960 | 9654:7328efba128b |
---|---|
1 # -*- coding: utf-8 -*- | 1 # -*- coding: utf-8 -*- |
2 | 2 |
3 # Copyright (c) 2002 - 2022 Detlev Offenbach <detlev@die-offenbachs.de> | 3 # Copyright (c) 2002 - 2023 Detlev Offenbach <detlev@die-offenbachs.de> |
4 # | 4 # |
5 | 5 |
6 """ | 6 """ |
7 Module implementing the debug base class which based originally on bdb. | 7 Module implementing the debug base class which based originally on bdb. |
8 """ | 8 """ |
131 """ | 131 """ |
132 Public method to return the frame "frmnr" down the stack. | 132 Public method to return the frame "frmnr" down the stack. |
133 | 133 |
134 @param frmnr distance of frames down the stack. 0 is | 134 @param frmnr distance of frames down the stack. 0 is |
135 the current frame | 135 the current frame |
136 @rtype int | 136 @type int |
137 @return the current frame | 137 @return the current frame |
138 @rtype frame object | 138 @rtype frame object |
139 """ | 139 """ |
140 # Don't show any local frames after the program was stopped | 140 # Don't show any local frames after the program was stopped |
141 if self.quitting: | 141 if self.quitting: |
386 return None | 386 return None |
387 if event == "c_return": | 387 if event == "c_return": |
388 return None | 388 return None |
389 | 389 |
390 print( # __IGNORE_WARNING_M801__ | 390 print( # __IGNORE_WARNING_M801__ |
391 "DebugBase.trace_dispatch:" " unknown debugging event: ", | 391 "DebugBase.trace_dispatch: unknown debugging event: ", |
392 repr(event), | 392 repr(event), |
393 ) | 393 ) |
394 | 394 |
395 return self.trace_dispatch | 395 return self.trace_dispatch |
396 | 396 |