python - Pycharm的Debug用不了
问题描述
今天遇到了一件头疼的事情,我用pycharm来Debug程序,一点就退,毫无现象,有谁遇到过的没。点击运行没毛病,加上断点就直接失败。这到底怎么搞,重装pycharm没用,python3.5安装包repair也没用。头疼。。。
问题解答
回答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路径,是否有特殊字符。
相关文章:
1. Java中main方法里面的参数一定要是String []args吗?2. html - 关于CSS实现border的0.5px设置?3. css3 - CSS优先级问题4. docker不显示端口映射呢?5. html5 - canvas中的mousedrag事件,为什么鼠标拖出canvas,然后再次移入canvas,drag事件还触发6. font-family - 我引入CSS3自定义字体没有效果?7. html5 - 目前 公司App 嵌入H5页面 做个 手机支付功能 没有做过 所以 请求各位有经验的 给个思路8. css3:flex排版问题9. css - 如何讓圖片像雲一樣的行為?10. css - 图片的宽度发生变化而高度却没有相应变?

网公网安备