MCPcopy Create free account
hub / github.com/ipython/ipython / do_longlist

Method do_longlist

IPython/core/debugger.py:572–584  ·  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

570 return inspect.getblock(lines[lineno:]), lineno+1
571
572 def do_longlist(self, arg):
573 """Print lines of code from the current stack frame.
574
575 Shows more lines than 'list' does.
576 """
577 self.lastcmd = 'longlist'
578 try:
579 lines, lineno = self.getsourcelines(self.curframe)
580 except OSError as err:
581 self.error(err)
582 return
583 last = lineno + len(lines)
584 self.print_list_lines(self.curframe.f_code.co_filename, lineno, last)
585 do_ll = do_longlist
586
587 def do_debug(self, arg):

Callers

nothing calls this directly

Calls 3

getsourcelinesMethod · 0.95
print_list_linesMethod · 0.95
errorMethod · 0.80

Tested by

no test coverage detected