cknd / stackprinter

Debugging-friendly exceptions for Python
MIT License
1.28k stars 37 forks source link

Does stackprinter have a functional equivalent to traceback's limit= parameter? #62

Open foundObjects opened 1 year ago

foundObjects commented 1 year ago

I'm looking to switch a codebase from traceback to stackprinter and there are a few instances where limit= is used to only display the top 10 or top 3 frames on the stack.

eg:

traceback.print_exc(limit=10)

Is there an equivalent to this in stackprinter?

Cheers~

cknd commented 11 months ago

Hi, sorry for the long delay. This doesn't currently exist but maybe I can add it easily