This extension add debugging support for Ansible playbooks to Visual Studio Code. This extension has no official affiliation or endorsement with Ansible and Red Hat and is a community project.
Debugging support comes from the ansibug Python module. It can set breakpoints through Ansible playbook and task files and step through the tasks inside that file like a normal debugger.
See the ansibug documentation for more information on how this works with Ansible.
The following Python requirements must be met before using this extension:
Ansible
must also be installed for ansibug
to interact withFor Windows users, this extension can be used with remote extensions like Remote -WSL
, Remote - SSH
, and Remove - Containers
.
This extension can run alongside the official vscode-ansible extension.
This extension contributes the following settings:
ansibug.interpreterPath
: Path to the python
/python3
executable where Ansible and ansibug
is installedansibug.logFile
: Path to a log file to store any logging information during a runansibug.logLevel
: The logging level to configure for the debug serverThis extension will also use the setting ansible.python.interpreterPath
set by the official vscode-ansible
extension as a fallback value for ansibug.interpreterPath
.