Comments (2)
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.
from pytest-pudb.
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.
from pytest-pudb.
Related Issues (12)
- Implement the pudb.b module
- pytest-pudb breaks datetime HOT 12
- Latest Pytest release (3.3.1) breaks pytest-pudb HOT 1
- Support pu.db
- TypeError in PuDBInvoke when using pytest --capture=no HOT 1
- Look at __tracebackhide__
- tagging releases
- Support pudb external breakpoint file HOT 7
- Add unittests
- PyPI package for v0.4 is broken HOT 1
- Avoid tearDown and cleanup in post mortem debugging
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytest-pudb.