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 to debug CVAT tests when deployed with containers #5327

Closed
zhiltsov-max opened this issue Nov 21, 2022 · 0 comments · Fixed by #5445
Closed

Allow to debug CVAT tests when deployed with containers #5327

zhiltsov-max opened this issue Nov 21, 2022 · 0 comments · Fixed by #5445
Assignees

Comments

@zhiltsov-max
Copy link
Contributor

Currently, it's not possible to debug CVAT in containers. It becomes the real problem when we try to debug a failing test from the REST API test suite, because it requires special environment setup and data on the instance.

Possible implementation

It allows you to use VS Code tasks to debug server deployed with docker. In this branch, you need to launch containers with the following command: CVAT_DEBUG_ENABLED=yes docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d --build. After rebuild, it is possible to join to the server application (a queue processor or the server itself) in a container using VS Code tasks. You need to specify correct paths in you environment in the task configurations. To debug, just run the server, put regular breakpoints in the code and connect to the running sever with the task in VS Code.

@zhiltsov-max zhiltsov-max self-assigned this Nov 21, 2022
nmanovic pushed a commit that referenced this issue Dec 10, 2022
Closes #5327

- Added a way to debug the server in Docker-based deployments
- Added docs
@nmanovic nmanovic mentioned this issue Dec 12, 2022
mikhail-treskin pushed a commit to retailnext/cvat that referenced this issue Jul 1, 2023
Closes cvat-ai#5327

- Added a way to debug the server in Docker-based deployments
- Added docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant