R
R
Roman2015-03-21 12:42:55
Python
Roman, 2015-03-21 12:42:55

Debugger not working with PyCharm CE 4.0.5 + Python 2.7.9?

On a Windows 8.1 system, Python versions 3.4.2 and 2.7.9, PyCharm CE 4.0.5 IDE are installed.
If Python 3.4.2 is selected as the current interpreter for the project, breakpoints work. But if you select Python 2.7.9, then the debugger does not stop at breakpoints, executing the program to the end. How to fix?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2017-02-02
@DarkGenius

The problem was related to the encoding of the script. Those. a script in one encoding was normally debugged only with Python 3.4.2, in another - regardless of the version of the interpreter. I don't remember the exact correspondence of test cases and encodings, but there were two of them - utf-8 and cp-1251. Empirically, you can find a match if the problem is relevant and you encounter it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question