Copy this doc up from the bok_choy tests. - #11519
Merged
Merged
Conversation
Contributor
|
👍 |
| and see what the values of the variables are. Check out `the pdb | ||
| documentation <http://docs.python.org/library/pdb.html>`__ | ||
|
|
||
| Use this command to put a debugging breakpoint in a test. |
Contributor
There was a problem hiding this comment.
We should point out that if someone actually checks in this code, his/her test will hang (i.e., don't check it in).
Contributor
Author
There was a problem hiding this comment.
I pushed up wording changes for this one (and copied them to the second doc of this feature).
Contributor
|
👍 |
It's just as relevant to unit tests and I wish I had seen it earlier. Stress the transient nature of this debugging step.
jibsheet
force-pushed
the
jibsheet/document-nose-breakpoints-twice
branch
from
February 12, 2016 15:27
3cf1d61 to
21b75f8
Compare
jibsheet
added a commit
that referenced
this pull request
Feb 12, 2016
…-twice Copy this doc up from the bok_choy tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It's just as relevant to unit tests and I wish I had seen it earlier (this is where I originally learned about --pdb which was super helpful for all my test debugging, but I was doing awful things to trigger the debugger from tests, like
raise Exception('kevin')since a normal import pdb doesn't work under nose).@benpatterson @jzoldak