Pycharm的Debug用不了

发布于 2022-09-05 02:35:28 字数 261 浏览 15 评论 0

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦魇绽荼蘼 2022-09-12 02:35:28

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


~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文