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

def do_longlist(self, arg):

    self.lastcmd = 'longlist'
    try:
        (lines, lineno) = self.getsourcelines(self.curframe)
    except OSError as err:
        self.error(err)
        return
    last = (lineno + len(lines))
    self.print_list_lines(self.curframe.f_code.co_filename, lineno, last)
