[Python] ipdb set_trace: retry block

Discussão em 'Python' iniciado por Stack, Janeiro 22, 2025.

  1. Stack

    Stack Membro Participativo

    import ipdb

    my_var = 1
    try:
    assert my_var == 2
    except AssertionError:
    ipdb.set_trace()
    raise


    Is there an easy way to retry the failing block if the value of my_var is changed in the resulting ipdb console?

    Continue reading...

Compartilhe esta Página