python - Pycharm的Debug用不了
問題描述
今天遇到了一件頭疼的事情,我用pycharm來Debug程序,一點就退,毫無現象,有誰遇到過的沒。點擊運行沒毛病,加上斷點就直接失敗。這到底怎么搞,重裝pycharm沒用,python3.5安裝包repair也沒用。頭疼。。。
問題解答
回答1: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路徑,是否有特殊字符。
相關文章:
1. javascript - js 有什么優雅的辦法實現在同時打開的兩個標簽頁間相互通信?2. html5和Flash對抗是什么情況?3. javascript - 怎樣限制同一個瀏覽器不能登錄兩個賬號4. java - 新手做一個安卓視頻播放器,想實現一個進度條,按鈕那種在視頻下方懸浮的功能,不知道思路!5. css3 - Typecho 后臺部分表單按鈕在 Chrome 下出現靈異動畫問題,求解決6. javascript - angular和jquery都用到了$符號,一起用會不會沖突?7. java - android代碼重構:如何把app設置里的頭像UI做成通用的?8. 想找個php大神仿個網站。9. javascript - 一個抽獎的效果(如圖)?10. javascript - jquery怎么給select option一個點擊時觸發的事件,如圖 如果選擇自定義觸發一個時間?
