MCPcopy Index your code
hub / github.com/ipython/ipython / do_longlist

Method do_longlist

IPython/core/debugger.py:963–976  ·  view source on GitHub ↗

Print lines of code from the current stack frame. Shows more lines than 'list' does.

(self, arg)

Source from the content-addressed store, hash-verified

961 return inspect.getblock(lines[lineno:]), lineno + 1
962
963 def do_longlist(self, arg):
964 """Print lines of code from the current stack frame.
965
966 Shows more lines than 'list' does.
967 """
968 self.lastcmd = "longlist"
969 try:
970 lines, lineno = self.getsourcelines(self.curframe)
971 except OSError as err:
972 self.error(str(err))
973 return
974 last = lineno + len(lines)
975 assert self.curframe is not None
976 self.print_list_lines(self.curframe.f_code.co_filename, lineno, last)
977
978 do_ll = do_longlist
979

Callers

nothing calls this directly

Calls 3

getsourcelinesMethod · 0.95
print_list_linesMethod · 0.95
errorMethod · 0.80

Tested by

no test coverage detected