summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAbhijeet Kasurde <akasurde@redhat.com>2020-02-26 21:28:39 +0530
committerGitHub <noreply@github.com>2020-02-26 10:58:39 -0500
commita4da73e96172ab0722cafd56cd16b5ae50b984ee (patch)
treefe6af096e94d5b0937e15f076bfd9eed92452897 /docs
parent9c221e2bfaa292b86cbffd964fcd5fe955605a11 (diff)
downloadansible-a4da73e96172ab0722cafd56cd16b5ae50b984ee.tar.gz
misc typo fixes (#67775)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/docsite/rst/dev_guide/debugging.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/docsite/rst/dev_guide/debugging.rst b/docs/docsite/rst/dev_guide/debugging.rst
index 1dd87f4f36..e7f6d22264 100644
--- a/docs/docsite/rst/dev_guide/debugging.rst
+++ b/docs/docsite/rst/dev_guide/debugging.rst
@@ -27,8 +27,8 @@ To debug a module running on a remote target (i.e. not ``localhost``):
#. Take note of the directory Ansible used to store modules on the remote host. This directory is usually under the home directory of your ``ansible_user``, in the form ``~/.ansible/tmp/ansible-tmp-...``.
#. SSH into the remote target after the playbook runs.
#. Navigate to the directory you noted in step 3.
-#. Extract the module you want to debug from the zipped file that Ansible sent to the remote host: ``$ python AnsiballZ_my_test_module.py explode``. Ansible will expand the module into ``./debug-dir``. You can optionally run the zipped file by specifying ``python AnsiballZ_my_test_module.py``.
-#. Navigate to the debug directory: ``$ cd debug-dir``.
+#. Extract the module you want to debug from the zipped file that Ansible sent to the remote host: ``$ python AnsiballZ_my_test_module.py explode``. Ansible will expand the module into ``./debug_dir``. You can optionally run the zipped file by specifying ``python AnsiballZ_my_test_module.py``.
+#. Navigate to the debug directory: ``$ cd debug_dir``.
#. Modify or set a breakpoint in ``__main__.py``.
#. Ensure that the unzipped module is executable: ``$ chmod 755 __main__.py``.
#. Run the unzipped module directly, passing the ``args`` file that contains the params that were originally passed: ``$ ./__main__.py args``. This approach is good for reproducing behavior as well as modifying the parameters for debugging.