Script/console Stack Trace

I’m getting an error when I try to run script/console in the
production environment, but it cuts 23 levels out of the stack trace
that might contain information I need to debug it. How can I display
the entire stack trace? Thanks.