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

Allow opening pudb not just on errors #10

Open
cool-RR opened this issue Mar 31, 2017 · 2 comments
Open

Allow opening pudb not just on errors #10

cool-RR opened this issue Mar 31, 2017 · 2 comments

Comments

@cool-RR
Copy link

cool-RR commented Mar 31, 2017

I want to run a single test, and have PuDB show up on the first line of the test. Is that possible?

@massich
Copy link

massich commented Jul 17, 2017

An easy way is to start a trace there. Add the following line at the beginning of your test:

import pudb;pudb.set_trace()

And pudb will stop there. However if you want randomly set break points using pudb and expect that py.test --pudb -k test_my_function stop when it finds such breakpoints its a different story. I think that it has to do with #3.

@countvajhula
Copy link

Looks like pytest supports a --trace option that will drop into pdb at the start of each specified test. With the pudb plugin, is it possible to have it drop into pudb instead? Or maybe with a similar --trace-pudb option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants