suchen

Heim  >  Fragen und Antworten  >  Hauptteil

python – Pycharms Debug kann nicht verwendet werden

Ich hatte heute Kopfschmerzen, um das Programm zu debuggen, und es wurde nach einer Weile beendet. Hat das schon mal jemand erlebt? Es ist nichts Falsches daran, zum Ausführen zu klicken, aber es schlägt sofort fehl, wenn Sie einen Haltepunkt hinzufügen. Wie geht das? Eine Neuinstallation von Pycharm ist nutzlos und das Reparieren des Python3.5-Installationspakets ist nutzlos. Kopfschmerzen. . .

ringa_leeringa_lee2778 Tage vor1493

Antworte allen(1)Ich werde antworten

  • 仅有的幸福

    仅有的幸福2017-06-28 09:27:59

    Pycharm debugger does not stop on breakpoints

    The following workaround should help. I had a same problem in a simple Python script. PyCharm debugger didn't stop on a simple breakpoint and just ran to the end.
    Thanks to Gabriel's answer, I checked the path to my script and it had Russian letters. Because I use Russian Windows and it creates admin user named 'Administrator' using Russian letters.

    I changed the Russian letters to use only English letters from the project-path (just copied PyCharm projects folder to the root of disk and reloaded my project from new place. Nothing else was changed!). And the debugger immediately started working just fine and stopped on breakpoints!

    It looks like this a bug that PyCharm debuger can't work with different national letters in the path. It very common situation outside English-speaking countries.


    总结:检查你的pycharm debugger路径,是否有特殊字符。


    Antwort
    0
  • StornierenAntwort