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

Support for pdb on process spawner #6023

Open
richtja opened this issue Sep 6, 2024 · 0 comments
Open

Support for pdb on process spawner #6023

richtja opened this issue Sep 6, 2024 · 0 comments

Comments

@richtja
Copy link
Contributor

richtja commented Sep 6, 2024

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always missing this feature when [...]

Right now, debugging of avocado python based tests with pdb is not possible because of spawner architecture. If you run avocado tests with pdb the only part which will be tracked is avocado core. This is not convenient from user's perspective when you want to track the test itself. This is caused by spawner architecture where the actual tests are spawned in different environment where the pdb is not enabled. Let's add native support for pdb in avocado process spawner.

Describe the solution you'd like
A clear and concise description of what you want to happen.
Imagine avocado instrumented test with breakpoints. Let's add ability to run this test through pdb:

$ python3 -m pdb avocado run test.py

Describe alternatives you've considered
Another possible solutionis not that intuitive, but it will be much easier to make. For users, generate a command for running failed test with runner and such test should be able to run with pdb:

$ python3 -m pdb avocado-runner-avocado-instrumented task-run -i=1 -u=test.py:TimeoutTest.test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In progress
Development

No branches or pull requests

2 participants