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题(关于hashmap的问题)2. javascript - react 中绑定事件和阻止事件冒泡3. java - .jsp页面用<%= %>的方式获取数据存在一个很奇怪的问题4. javascript - requestAnimationFrame如何控制帧速?5. node.js - Nodejs微信开发,视频上传成功,但是不返回给用户6. javascript - 百度链接尾部的这个参数是干嘛的?7. mysql - 这条sql可以怎么优化,求帮助8. 热切期待朱老师的回复,网页视频在线播放器插件配置错误9. mysql索引的疑问10. 老师,请问下为什么这个地方的单引号里面的变量能够被解析呢?

网公网安备