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. mysql 查詢身份證號字段值有效的數據2. 請教使用PDO連接MSSQL數據庫插入是亂碼問題?3. 視頻文件不能播放,怎么辦?4. node.js - 為什么微信的消息MsgId出現重復了,無法排重了。。5. flask - python web中如何共享登錄狀態?6. python - 我在使用pip install -r requirements.txt下載時,為什么部分能下載,部分不能下載7. node.js - nodejs開發中常用的連接mysql的庫8. python如何不改動文件的情況下修改文件的 修改日期9. mysql - 把一個表中的數據count更新到另一個表里?10. mysql - 分庫分表、分區、讀寫分離 這些都是用在什么場景下 ,會帶來哪些效率或者其他方面的好處
