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

Method do_longlist

Lib/pdb.py:2214–2230  ·  view source on GitHub ↗

ll | longlist List the whole source code for the current function or frame.

(self, arg)

Source from the content-addressed store, hash-verified

2212 do_l = do_list
2213
2214 def do_longlist(self, arg):
2215 """ll | longlist
2216
2217 List the whole source code for the current function or frame.
2218 """
2219 if arg:
2220 self._print_invalid_arg(arg)
2221 return
2222 filename = self.curframe.f_code.co_filename
2223 breaklist = self.get_file_breaks(filename)
2224 try:
2225 lines, lineno = self._getsourcelines(self.curframe)
2226 except OSError as err:
2227 self.error(err)
2228 return
2229 self._print_lines(lines, lineno, breaklist, self.curframe)
2230 self._validate_file_mtime()
2231 do_ll = do_longlist
2232
2233 def do_source(self, arg):

Callers

nothing calls this directly

Calls 6

_print_invalid_argMethod · 0.95
_getsourcelinesMethod · 0.95
errorMethod · 0.95
_print_linesMethod · 0.95
_validate_file_mtimeMethod · 0.95
get_file_breaksMethod · 0.80

Tested by

no test coverage detected