Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--pdb does not work when collecting #181

Closed
pytestbot opened this issue Aug 28, 2012 · 2 comments
Closed

--pdb does not work when collecting #181

pytestbot opened this issue Aug 28, 2012 · 2 comments
Labels
type: bug problem that needs to be addressed

Comments

@pytestbot
Copy link
Contributor

Originally reported by: Armin Rigo (BitBucket: arigo, GitHub: arigo)


"py.test --pdb" ignores the --pdb option for crashes that occur during collect. Try to run "py.test --pdb test_foo.py" with only the line "crash_here" in test_foo.py.


@pytestbot
Copy link
Contributor Author

Original comment by Armin Rigo (BitBucket: arigo, GitHub: arigo):


platform linux2 -- Python 2.7.3 -- pytest-2.2.4

@pytestbot
Copy link
Contributor Author

Original comment by holger krekel (BitBucket: hpk42, GitHub: hpk42):


  • fix issue181: --pdb now also works on collect errors. This was
    implemented by a slight internal refactoring and the introduction
    of a new hook pytest_exception_interact hook.
  • fix issue341: introduce new experimental hook for IDEs/terminals to
    intercept debugging: pytest_exception_interact(node, call, report).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug problem that needs to be addressed
Projects
None yet
Development

No branches or pull requests

1 participant