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. mysql - 請問數據庫字段為年月日,傳進的參數為月,怎么查詢那個月所對應的數據2. node.js - win 下 npm install 遇到了如下錯誤 會導致 無法 run dev么?3. javascript - 我的站點貌似被別人克隆了, google 搜索特定文章,除了域名不一樣,其他的都一樣,如何解決?4. 求救一下,用新版的phpstudy,數據庫過段時間會消失是什么情況?5. [python2]local variable referenced before assignment問題6. Python2中code.co_kwonlyargcount的等效寫法7. html - 移動端radio無法選中8. php - 微信開發驗證服務器有效性9. javascript - vue+iview upload傳參失敗 跨域問題后臺已經解決 仍然報403,這是怎么回事啊?10. mysql - 如何在有自增id的情況下,讓其他某些字段能不重復插入
