Search code examples
pythonvisual-studio-codeattach-to-process

VS Code debug Attach using Process ID stopped working


For some time I have been using VS Code to debug Python code connecting to Excel using pyxll. The procedure I have been using is: Click the debug icon Click "Run and Debug" Select "Attach using Process ID Attach to a local process" Select Excel from the list of processes displayed

Previously VS Code then connected to Excel and I could debug the associated Python code, but starting yesterday nothing happens after selecting Attach using Process ID Attach.

I have not changed any settings or installed new software (that I'm aware of) since the debug process was working.

I tried uninstalling and reinstalling VS Code but this made no difference.


Solution

  • The problem I was having has now fixed itself (since 18 Feb 2023) with the latest update to VS Code. The debug procedure for linking to a local process now works as before. The Version is 1.75.1; details below: enter image description here