python - Pycharm的Debug用不了
問(wèn)題描述
今天遇到了一件頭疼的事情,我用pycharm來(lái)Debug程序,一點(diǎn)就退,毫無(wú)現(xiàn)象,有誰(shuí)遇到過(guò)的沒(méi)。點(diǎn)擊運(yùn)行沒(méi)毛病,加上斷點(diǎn)就直接失敗。這到底怎么搞,重裝pycharm沒(méi)用,python3.5安裝包repair也沒(méi)用。頭疼。。。
問(wèn)題解答
回答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. Span標(biāo)簽2. docker-machine添加一個(gè)已有的docker主機(jī)問(wèn)題3. redis啟動(dòng)有問(wèn)題?4. 關(guān)docker hub上有些鏡像的tag被標(biāo)記““This image has vulnerabilities””5. docker-compose中volumes的問(wèn)題6. android新手一枚,android使用httclient獲取服務(wù)器端數(shù)據(jù)失敗,但是用java工程運(yùn)行就可以成功獲取。7. javascript - ng-options 設(shè)置默認(rèn)選項(xiàng),不是設(shè)置第一個(gè)哦,看清楚了!8. angular.js使用$resource服務(wù)把數(shù)據(jù)存入mongodb的問(wèn)題。9. java - Collections類里的swap函數(shù),源碼為什么要新定義一個(gè)final的List型變量l指向傳入的list?10. css - 求推薦適用于vue2的框架 像bootstrap這種類型的
