debugger-batch-max-lines is a variable defined in `debug.el'.
Maximum lines to show in debugger buffer in a noninteractive Emacs.
the middle is discarded, and just the beginning and end are displayed.