none
Visual Studio Code: Debugging is not working RRS feed

  • Question

  • I am testing the debugging feature in visual studio code using the default debugtest.ps1 file. However I get an error

    Debug adapter process has terminated unexpectedly.( read error)

    and Debugger is not working. Version is 1.29.1

    Monday, November 4, 2019 1:23 PM

All replies

  • Hi Admin66,

    Welcome to MSDN forum.

    For this error, it seems that it could not install correctly. You could close VS Code and go to extension directory"C:\Users\[user name]\.vscode\extensions" , then delete the ms-vscode.powershell folder, then run VS Code to re-install this extension and check if it could work.

    If it persists, please update the VS code and python extension to latest version.

    Look forward to your reply.

    Best Regards,

    Dylan


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Tuesday, November 5, 2019 3:14 AM
  • Hi Admin66,

    Sorry to disturb you, did you have any update?

    You could also check if there is another process that running on the same port that debug adapter process needs to use.

    According to this similar issue Visual Studio Code – Error :Debug Adapter Process Has Terminated Unexpectedly. You could refer to it and use this command “sudo netstat –nlp | grep : XXXX” to check the ports that maybe used by other process, if one certain take over this port by default then try to service down or change the port number.

    Hope this could help you.

    Best Regards,

    Tianyu


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, November 11, 2019 8:42 AM