VSCode debugger attach to local process
问题 One of the great features of PyCharm is that it allows its debugger to attach to python processes running locally (and outside of the IDE). As I am trying to move to VSCode to work in Python, I am struggling to configure launch.json to simulate PyCharm's attach to local process feature. { "name": "Python: Attach", "type": "python", "request": "attach", "localRoot": "${workspaceFolder}", "remoteRoot": "${workspaceFolder}", "port": 8001, "secret": "my_secret", "host": "localhost" }, This