Ansible module debug

Hi,

I’m trying to debug Ansible modules.
I usually do this, for example.
(args.json is parameters file)

`
python ./ansible/lib/ansible/modules/source_control/subversion.py ./args.json

`

I tried to debug for “yum” module.
But, this error occurred.
What is error for?

`
python ./ansible/lib/ansible/modules/packaging/os/yum.py ./args.json

`

`
Traceback (most recent call last):

File “./ansible/lib/ansible/modules/packaging/os/yum.py”, line 1667, in
main()
File “./ansible/lib/ansible/modules/packaging/os/yum.py”, line 1663, in main
module_implementation.run()
File “./ansible/lib/ansible/modules/packaging/os/yum.py”, line 1601, in run
my = self.yum_base()
File “./ansible/lib/ansible/modules/packaging/os/yum.py”, line 458, in yum_base
my = yum.YumBase()
AttributeError: ‘module’ object has no attribute ‘YumBase’
`

Ansible version is

`

ansible --version

ansible 2.10.0.dev0
config file = None
configured module search path = [u’/root/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’]
ansible python module location = /root/ansible/lib/ansible
executable location = /root/ansible/bin/ansible
python version = 2.7.5 (default, Aug 7 2019, 00:51:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
`