python - Pycharm的Debug用不了
問題描述
今天遇到了一件頭疼的事情,我用pycharm來Debug程序,一點(diǎn)就退,毫無現(xiàn)象,有誰遇到過的沒。點(diǎn)擊運(yùn)行沒毛病,加上斷點(diǎn)就直接失敗。這到底怎么搞,重裝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.
總結(jié):檢查你的pycharm debugger路徑,是否有特殊字符。
相關(guān)文章:
1. APP上傳到電腦服務(wù)器,出現(xiàn)數(shù)據(jù)上傳不完整的問題2. 哭遼 求大佬解答 控制器的join方法怎么轉(zhuǎn)模型方法3. 編輯管理員信息時,為什么沒有修改過的內(nèi)容會為空?4. mysql數(shù)據(jù)庫每次查詢是一條線程嗎?5. 就一臺服務(wù)器,mysql數(shù)據(jù)庫想實(shí)現(xiàn)自動備份,如何設(shè)計?6. mysql如何按權(quán)重查詢數(shù)據(jù)啊?7. 大家都用什么工具管理mysql數(shù)據(jù)庫?8. mysql - thinkphp5 在MAC電腦本地正常,部署LINUX服務(wù)器之后,模型不存在9. 這是什么情況???10. mysql - mac自帶數(shù)據(jù)庫?
