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

Method defaultFile

Lib/pdb.py:1473–1478  ·  view source on GitHub ↗

Produce a reasonable default.

(self)

Source from the content-addressed store, hash-verified

1471
1472 # To be overridden in derived debuggers
1473 def defaultFile(self):
1474 """Produce a reasonable default."""
1475 filename = self.curframe.f_code.co_filename
1476 if filename == '<string>' and self.mainpyfile:
1477 filename = self.mainpyfile
1478 return filename
1479
1480 do_b = do_break
1481

Callers 2

do_breakMethod · 0.95
lineinfoMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected