breakpoint not hit when running "debug context configuration" in a file named setup.py

Hi,

I am experiencing a weird behavior when i set a breakpoint in a file called setup.py

Basically the breakpoint in the file setup.py is never hit when i "debug context configuration".

For example:

    1 import some_module

    2 print 'done'

when the above snippet is placed into a file called foo.py and a breakpoint is set at say line 2 and i invoke the shortcut

of "debug context configuration" the breakpoint is hit. When the same thing is done when foo.py is renamed to setup.py

i get the unittest runner...

this sounds like a bug i suppose.

 

 

1 comment
Official comment

Hi! I've created the issue in our tracker, please, follow it https://youtrack.jetbrains.com/issue/PY-19088 
At the moment, in order to run or debug such file you should go to Run | Edit Configurations, press green cross and select Python run configuration. After that you can specify your script name and save this configuration. After that you will be able to run or debug your 'setup.py' file as a regular Python file.

Please sign in to leave a comment.