[Python] Limit number of stack levels shown

Discussão em 'Python' iniciado por Stack, Agosto 1, 2025.

  1. Stack

    Stack Membro Participativo

    In Python pdb, can I limit number of stack levels shown by "where", around my current position in the stack?

    In my specific use case, I want to investigate an maximum recursion problem, where the original problem is maybe on stack level 20, but the stack trace shows all 500 levels.

    I know I can set the recursion limit to a lower value, but it would be nicer if I could simply show the surrounding n levels around the current level.

    Continue reading...

Compartilhe esta Página