MCPcopy Index your code
hub / github.com/python/cpython / print_traceback

Method print_traceback

Tools/gdb/libpython.py:1271–1281  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1269 return int(self._gdbval)
1270
1271 def print_traceback(self):
1272 if self.is_optimized_out():
1273 sys.stdout.write(' %s\n' % FRAME_INFO_OPTIMIZED_OUT)
1274 return
1275 visited = set()
1276 lineno = self.current_line_num()
1277 lineno = str(lineno) if lineno is not None else "?"
1278 sys.stdout.write(' File "%s", line %s, in %s\n'
1279 % (self.co_filename.proxyval(visited),
1280 lineno,
1281 self.co_name.proxyval(visited)))
1282
1283 def print_traceback_until_shim(self, frame_index=None):
1284 # Print traceback for _PyInterpreterFrame and return previous frame

Callers 1

Calls 6

is_optimized_outMethod · 0.95
current_line_numMethod · 0.95
setFunction · 0.85
strFunction · 0.85
writeMethod · 0.45
proxyvalMethod · 0.45

Tested by

no test coverage detected