2

I am trying to debug python code in Pycharm. I assign a break-point on a line using ctr+F8 and then debug using the debug icon on top right corner.

However the execution does not stop at the breakpoint and whole code is executed. I am trying to stop the execution at breakpoint and then execute the code line by line while checking the variable values.

What possibly I am doing wrong? It does not work on other code files which I created for checking.

Stelios
  • 119
  • 3
  • 11

2 Answers2

0

See the answers in this issue Unable to debug in pycharm with pytest. For me it was deleting the __pycache__ directories because I had copies the project over from a different computer.

Tom Johnson
  • 1,793
  • 1
  • 13
  • 31
-3

In order to debug (and stop at a breakpoint) you need to use Run > Debug (Alt+Shift+F9), not Run > Run (Alt+Shift+F10).

DeanM
  • 4,695
  • 1
  • 10
  • 11