Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
似乎即使取消选中 PyDev/Debug 首选项窗格中的选项以在后台启动,一旦启动,我必须去任务管理器杀死 python 进程。
当您使用像cherrypy / django之类的东西并且在您在运行时更改python文件后进程重新启动时,通常会发生这种情况。发生这种情况时,我认为该过程有所不同,但仍使用相同的输出控制台,因此当您按下红色按钮时不会被杀死。
我不确定有没有办法修复它,除了在 web 框架中禁用自动重启等。
据我所知,在使用 Django 时,您需要runserver --noreload在 Run > Run... 菜单中添加程序参数
runserver --noreload