python - Pycharm的Debug用不了
問題描述
今天遇到了一件頭疼的事情,我用pycharm來Debug程序,一點就退,毫無現(xià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. 如何解決docker宿主機無法訪問容器中的服務(wù)?2. javascript - html5的data屬性怎么指定一個function函數(shù)呢?3. android - RxJava 中有根據(jù)條件執(zhí)行不同函數(shù)的操作符嗎?4. angular.js - 輸入郵箱地址之后, 如何使其自動在末尾添加分號?5. java如何生成token?6. 在mac下出現(xiàn)了兩個docker環(huán)境7. javascript - 后臺管理系統(tǒng)左側(cè)折疊導(dǎo)航欄數(shù)據(jù)較多,怎么樣直接通過搜索去定位到具體某一個菜單項位置,并展開當前菜單8. docker-compose中volumes的問題9. javascript - 如何使用nodejs 將.html 文件轉(zhuǎn)化成canvas10. python - Scrapy存在內(nèi)存泄漏的問題。
