python - Pycharm的Debug用不了
ringa_lee
ringa_lee 2017-06-28 09:25:59
[Python讨论组]

今天遇到了一件头疼的事情,我用pycharm来Debug程序,一点就退,毫无现象,有谁遇到过的没。点击运行没毛病,加上断点就直接失败。这到底怎么搞,重装pycharm没用,python3.5安装包repair也没用。头疼。。。

ringa_lee
ringa_lee

ringa_lee

全部回复(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.


总结:检查你的pycharm debugger路径,是否有特殊字符。


热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号