question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Debug adapter process has terminated unexpectedly

See original GitHub issue

With the latest version of VS Code (1.4.0), and the latest version of PowerShell for VS Code (0.7.0) running on Windows 10 version 1607 OS Build 14393.51, whenever I run a PowerShell script, I get a ‘Debug adapter process has terminated unexpectedly’.

This is what I see in developer tools…

Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: 40995 for PowerShell.ExpandAlias [Extension Host] Spell and Grammar checker active... [Extension Host] Default Settings [Extension Host] Code Actons Registering for: markdown [Extension Host] Code Actons Registering for: plaintext [Extension Host] powershell.exe started, pid: 8264, exe: C:\WINDOWS\Sysnative\WindowsPowerShell\v1.0\powershell.exe [Extension Host] Socket connected! Debug adapter process has terminated unexpectedly Debug adapter process has terminated unexpectedly: Error: Debug adapter process has terminated unexpectedly at Object.C [as create] (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:34:19570) at file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:105:21677 at Object.m [as _notify] (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:30:8153) at Object.B.enter (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:30:11658) at i.Class.define._run (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:30:12979) at i.Class.define._chainedError (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:30:12338) at i (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:30:10161) at i.Class.define.then (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:30:13788) at Object.P.enter (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:30:10230) at i.Class.define._run (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:30:12979) at i.Class.define._setCompleteValue (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:30:12673)

This is my launch.json which hasn’t been changed since I updated PowerShell for VS Code…

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "PowerShell",
            "type": "PowerShell",
            "request": "launch",
            "program": "${file}",
            "args": [],
            "cwd": "${file}"
        },
        {
            "name": "PowerShell x86",
            "type": "PowerShell x86",
            "request": "launch",
            "program": "${file}",
            "args": [],
            "cwd": "${file}"
        }
    ]
}

vscodedebug

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:42

github_iconTop GitHub Comments

6reactions
jackfruhcommented, Sep 1, 2016

I just want to say that Powershell on osx might be the best thing to happen since sliced bread.

5reactions
daviwilcommented, Sep 1, 2016

I just looked over a bunch of logs and I’m seeing some patterns in the error messages. Looks like the connections to the debug service are being rejected at times even though the Editor Services logs say that the socket was initialized successfully.

I’ll try to reproduce and fix the issue today. If I can’t immediately get a fix I’ll still try to make some tweaks to the debugger client so that it’s more resilient when a connection can’t be made immediately. I’ll ship an update in the next day or two after I’ve made some progress!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio Code (VSCode) - Error: Debug Adapter Process ...
1. First of all Install VSCode · 2. Install PHP Debug Adapter for Visual Studio Code · 3. Install XDebug in WAMP ·...
Read more >
Debug adapter process has terminated unexpectedly (exit ...
This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in...
Read more >
The mystery of "Debug adapter process has terminated ...
After all, “Debug adapter process has terminated unexpectedly” sounds like something that would leave a core dump or two. And you know what, ......
Read more >
Debug adapter process has terminated unexpectedly! - ionic-v3
I'm building Ionic 3 application using VScode , I was debugging my code without any problems , but now when debugging code I...
Read more >
React Native - Debug adapter process has terminated ...
Coding example for the question React Native - Debug adapter process has terminated unexpectedly-React Native.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found