Perhaps the problem I'm facing is a little complex, let me try to clarify it.
Currently I have a virtualenv installed in my WSL ubuntu. In this env, I installed a python package using pip. This package provides some convenient cli-interface commands, so if I have activated the env, I can directly run some commands like
(myEnv) name@host: py_cli_cmd --option1 aa --option2 bb ...
Now I have a bash script, defined some variables and invoked the python commands several times, structure like
base_dir=data/
first_dir=$base_dir/first/
second_dir=$base_dir/second/
...
for choice in a b
do
py_cli_cmd --option1 $choice --option2 $first_dir
done
Now I want to understand the data flow and data structures of the python command, so I planned to use PyCharm to debug it. However I'm facing two problems:
- I modified the python scripts in pycharm, added some print statements, but seems they took no effect
- I tried to attach pycharm to the process running in the WSL, but the IDE prompted no processes were found
In such a case can I have any way to debug the python script? Thank you all.