久久r热视频,国产午夜精品一区二区三区视频,亚洲精品自拍偷拍,欧美日韩精品二区

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

python - Pycharm的Debug用不了

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

問題描述

今天遇到了一件頭疼的事情,我用pycharm來Debug程序,一點(diǎn)就退,毫無現(xiàn)象,有誰遇到過的沒。點(diǎn)擊運(yùn)行沒毛病,加上斷點(diǎ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路徑,是否有特殊字符。

標(biāo)簽: Python 編程
相關(guān)文章:
主站蜘蛛池模板: 东辽县| 阳东县| 滕州市| 丰顺县| 大埔区| 德钦县| 乌苏市| 武功县| 钟祥市| 梁山县| 原平市| 陇南市| 上蔡县| 大理市| 海阳市| 仁寿县| 怀仁县| 桃源县| 清水河县| 南岸区| 晋城| 乾安县| 年辖:市辖区| 子长县| 上饶市| 佛山市| 略阳县| 马龙县| 桑日县| 肇东市| 七台河市| 通河县| 石河子市| 马尔康县| 罗平县| 张家港市| 沾化县| 和平区| 昭通市| 诏安县| 延长县|