Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

I want to use python option -m when i use pycharm debugger

Hi I got the project on the github, I want to analyze this code using debugging.
The project uses python 3.6 and requires next command when running

python -m pixloc.run_Aachen

pixloc is package (directory) name and run_Aachen is python file name.

When I run this command using Pycharm, It is successful

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

but When I run this using Pycharm Debug mode, It is fail

the following image is my Run/Debug Configuration

enter image description here

What can I do for this problem

I try to use setuptools.setup(), but this isn’t work
I just want to use -m option in debug

>Solution :

Your run configuration is currently set to to run a Python script (i.e., as python ./path/to/script.py), but you want to execute a module (i.e., python -m package.subpack.mod).

To change your run configuration to one that executes a module, do the following:

  1. Under the run configuration, click on the first dropdown that reads "Script path" and change it to "Module name".

  2. Then, specify pixloc.run_Aachen in accompanying testbox.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading