VSCode kill running processes

不问归期 提交于 2019-12-02 14:54:42

问题


I have been using Python debug and LLDB attach debug since I have code in Python and C++

I have run this multiple times. It looks like everytime there is an exception in the middle of debugging, the process doesn't get killed.

As a result, now after multiple runs, when I try to use LLDB Attach debug it shows multiple instances of the same file being run

Unable to know which is the latest process

Also how to kill processes that haven't terminated.

For reference, here's an image


回答1:


Those processes can probably be termed as ghost processes. Those are caused from the previous run when one does not detach the lldb from it.

Manually searching for the process ID of those and killing them solved the problem.

List python related processes

ps -ef | grep python

Killing the ones you identify as ghost.

kill -9 <process-id>


来源:https://stackoverflow.com/questions/52319671/vscode-kill-running-processes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!