国产成人精品亚洲777人妖,欧美日韩精品一区视频,最新亚洲国产,国产乱码精品一区二区亚洲

您的位置:首頁技術(shù)文章
文章詳情頁

python - Pycharm的Debug用不了

瀏覽:161日期:2022-06-27 10:54:48

問題描述

今天遇到了一件頭疼的事情,我用pycharm來Debug程序,一點就退,毫無現(xiàn)象,有誰遇到過的沒。點擊運行沒毛病,加上斷點就直接失敗。這到底怎么搞,重裝pycharm沒用,python3.5安裝包repair也沒用。頭疼。。。python - Pycharm的Debug用不了

問題解答

回答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路徑,是否有特殊字符。

標簽: Python 編程
相關(guān)文章:
主站蜘蛛池模板: 林西县| 九龙县| 叙永县| 绵阳市| 乐业县| 玉田县| 麟游县| 太湖县| 镇远县| 班戈县| 安新县| 龙州县| 邹平县| 休宁县| 五常市| 霍山县| 凭祥市| 宜春市| 余姚市| 石河子市| 蒙自县| 洪江市| 顺义区| 台东市| 乌拉特中旗| 邵阳县| 云和县| 集贤县| 遂川县| 太仓市| 来宾市| 禹州市| 邻水| 集贤县| 祥云县| 吉木乃县| 来宾市| 石屏县| 肥东县| 山阳县| 东山县|