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

Create a single-process mode for debugging. #4

Open
theepicsnail opened this issue Sep 16, 2013 · 1 comment
Open

Create a single-process mode for debugging. #4

theepicsnail opened this issue Sep 16, 2013 · 1 comment

Comments

@theepicsnail
Copy link
Owner

pdb can not step through out-of-process code, nor can it hook onto the parent process's stdin/stdout. This means that if you use pdb inside a plugin, the pdb.set_trace() breaks and crashes that process.

@theepicsnail
Copy link
Owner Author

The test runner is in a single process. The way to debug using pdb (or any debugger) should be done through tests.

python main.py test

Will run all tests (pdb will get triggered and enter at the right time)

python -m tests/test_plugin/test_foo 

Will run the tests for the foo plugin. Note no 'main.py' and not 'test_foo.py'

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

No branches or pull requests

1 participant