Debugger prints before connecting

Answered

when i run my code in "debug" mode i get:

 

C:\Python27\python.exe "C:\Program Files\JetBrains\PyCharm Community Edition 2018.3.2\helpers\pydev\pydevd.py" --multiproc --qt-support=auto --client 127.0.0.1 --port 57773 --file test.py
PATH exists True
pydev debugger: process 8240 is connecting

Connected to pydev debugger (build 183.4886.43)
PATH exists True

Process finished with exit code 0

 

while running it in "Run" mode i get

 

test.py
PATH exists True

Process finished with exit code 0

 

See how in the "debug" mode i get the prints "PATH exists True" duplicated.

When I put a break point on the print, the debugger stops only at the second print and not on the first one (so the first print gets executed anyway).

Any idea why this is happening?

I am new to the community so please have mercy on me :)

5 comments
Comment actions Permalink

Hi Daniel,

Does it happen with just one single file or any newly created file?

Please try starting with defaults by renaming/removing configuration and plugins folders https://intellij-support.jetbrains.com/hc/en-us/articles/206544519. If it doesn't help, upload your renamed logs folder zipped (Help | Compress Logs and Show in...) to https://uploads.services.jetbrains.com/ and let me know the name of that file.

0
Comment actions Permalink

Hi Sergey,

Thank you for your help. I did not change anything in the configuration. I think it was a conflict between 2 file names (I renamed one of my files and it worked, when i renamed it back i got the same issue as above).

I am still wondering how those line were printed, but for now i can live with new file name.

If you would like to go deeper into it and find out exactly why it happend i would be glad to help.

0
Comment actions Permalink

Hmm, that's odd.

>If you would like to go deeper into it and find out exactly why it happend i would be glad to help.

Yes, please provide a screenshot showing these two files in conflict. I am wondering how their names can have something to do with it.

0
Comment actions Permalink

Below are the 2 files. see how when the file is named `pwd.py` the debugger prints before the breakpoint, while when the name is `test.py` the debugger works correctly.

0
Comment actions Permalink

I am not able to reproduce it.

Would it be possible to share this project with us? We guarantee it's privacy.

You could upload it zipped to https://uploads.services.jetbrains.com and let me know the name of that zip file.

0

Please sign in to leave a comment.