Commit Graph

5 Commits (98ff0ef05b2bdbeaec7f5c2744f24e03e531b0e4)

Author SHA1 Message Date
Jordan Borean 1f522fc829
Update test/lib/ansible_test/_internal/debugging.py
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
3 months ago
Jordan Borean 51e0772922
Fix sanity test 3 months ago
Jordan Borean 69ddc625c7
Use debugpy from VSCode bundle
Ensure that the `debugpy` module bundled by VSCode is included in the
debug environment set by `ansible-test shell --dev-debug-on-demand`.
This means that `debugpy` does not need to be manually installed in the
Python environment running Ansible.
3 months ago
Jordan Borean 3882366585
Add AnsiballZ debugging support with debugpy (#85476)
* Add AnsiballZ debugging support with debugpy

Adds support for debugging AnsiballZ modules with debugpy which is used
by VSCode as its Python debugger DAP. Debugging can either be done
through a manual Debugpy listening server through a launch.json
configuration or through the new ansible-test --dev-debug-on-deman
argument.

* Fix up integration test

* Simplify config option and move mypy ignore

* Use new API if available and fix typo

* Guard the import of debugpy

* Fix sanity import issue

* Minor cosmetic adjustments

* Simplify debugger setup

* ansible-test - Refactor debugging interface

* Add ansible-test debug integration tests

* Fix ansible-test shell when in unsupported dir

---------

Co-authored-by: Matt Clay <matt@mystile.com>
5 months ago
Matt Clay 7ef13cb29e
ansible-test - Add remote debugging support (#85317) 6 months ago