当您单击红色小按钮时,Eclipse PyDev 不会关闭解释器
似乎即使在取消选中 PyDev/Debug 偏好窗格中的选项以在后台启动后,一旦启动,我也必须转到任务管理器来终止 python 进程。
Seems that even after unchecking the option in the PyDev/Debug preferenecs pane to launch in the background, once it's launched I have to go to task manager to kill the python process.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
据我所知,在使用 Django 时,您需要将 runserver --noreload 添加到 Run > 中的程序参数中。运行...菜单
As far as I can tell when working with Django you need to add
runserver --noreload
to your program argument in Run > Run... menu当您使用诸如cherrypy/django之类的东西并且在运行时更改Python文件后进程重新启动时,通常会发生这种情况。当发生这种情况时,我认为该过程是不同的,但仍然使用相同的输出控制台,因此当您按下红色按钮时不会被杀死。
我不确定是否有办法修复它,除了在网络框架等中禁用自动重新启动。
This often happens when you're using something like cherrypy/django and the process restarts after you've changed a python file while it's running. When this happens, I think the process is different but still using the same output console and thus won't be killed when you press the red button.
I'm not sure there's a way of fixing it, except for disabling auto-restarting in the web framework etc.