M2skills
M2skills

Reputation: 321

pycharm debugger not working properly

I am doing simple python coding in pycharm but the problem is whenever I debug it starts debugging some other file in my project and not the one I am working with.

I did go to run-->edit configuration and check if my file was set for debugging and it was but still it debugs another file when I start debugging.

any help will be appreciated

Upvotes: 0

Views: 6386

Answers (3)

vasu
vasu

Reputation: 39

The saving python files with the python module name causing debugging issues. Replace the files with other name it will work.

Upvotes: 0

Ammar Alyasry
Ammar Alyasry

Reputation: 106

I think you can do it with Right clicking on body of codes and select your project name form there. Also can select Run > Debug

you can debug it line by line from here

Upvotes: 1

Israel Unterman
Israel Unterman

Reputation: 13510

If you debug using pressing SHIFT-F9 it debugs the last file you debugged, which might be some file you debugged yesterday...

To debug a new file press ALT-SHIF-F9.

You can see these two different debugging options from the Run menu. There is Debug <last file> and there is Debug...

Upvotes: 2

Related Questions