Skip to content

Conversation

@jnewbery
Copy link
Contributor

Adds a simple option to the test_framework to attach pdb if the test fails.

Helpful for catching and debugging intermittent failures: Run the test in a loop with this option. The first failure will cause execution to pause and nodes will be left running for interactive debugging.

@sdaftuar

@laanwj laanwj added the Tests label Aug 10, 2017
@laanwj
Copy link
Member

laanwj commented Aug 10, 2017

This could certainly be useful to inspect state after a test failed, utACK.

@sdaftuar
Copy link
Member

I'm using this right now to debug a test. ACK.

@maflcko
Copy link
Member

maflcko commented Aug 11, 2017

utACK cc5d38f

@maflcko maflcko merged commit cc5d38f into bitcoin:master Aug 11, 2017
maflcko pushed a commit that referenced this pull request Aug 11, 2017
…ional test fails

cc5d38f Add option to attach a python debugger if test fails (John Newbery)

Pull request description:

  Adds a simple option to the test_framework to attach pdb if the test fails.

  Helpful for catching and debugging intermittent failures: Run the test in a loop with this option. The first failure will cause execution to pause and nodes will be left running for interactive debugging.

  @sdaftuar

Tree-SHA512: 01cfae15fa3f04ed6ec6a99fef60a6c6a59723429309e81eacd6767caf12f5758f59b337804291ecab33a38a2958f36e2b513d201bee72a2eeb207a67046f952
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Aug 2, 2019
…f functional test fails

cc5d38f Add option to attach a python debugger if test fails (John Newbery)

Pull request description:

  Adds a simple option to the test_framework to attach pdb if the test fails.

  Helpful for catching and debugging intermittent failures: Run the test in a loop with this option. The first failure will cause execution to pause and nodes will be left running for interactive debugging.

  @sdaftuar

Tree-SHA512: 01cfae15fa3f04ed6ec6a99fef60a6c6a59723429309e81eacd6767caf12f5758f59b337804291ecab33a38a2958f36e2b513d201bee72a2eeb207a67046f952
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants