Debug adapter process has terminated unexpectedly
From @Yagneshdxt on March 12, 2017 11:26
- VSCode Version: Code 1.10.2 (8076a19fdcab7e1fc1707952d652f0bb6c6db331, 2017-03-08T14:02:52.799Z)
- OS Version: Windows_NT ia32 6.1.7601
- Extensions:
| Extension | Author | Version |
|---|---|---|
| php-debug | felixfbecker | 1.10.0 |
| php-intellisense | felixfbecker | 1.1.3 |
| csharp | ms-vscode | 1.7.0 |
| mono-debug | ms-vscode | 0.15.3 |
| laravel-blade | onecentlin | 1.8.1 |
Steps to Reproduce:
- click on start debugging button on debugging tab. (I am debugging php file wiht felixfbecker.php-debug extension)
- Debugger shows error Debug adapter process has terminated unexpectedly on my developer tool it shows error in workbench.main.js:103
My debugging was working fine before vscode update after vscode update it started showing this error.
Copied from original issue: Microsoft/vscode#22476
I had same problem after updating to VSCode 1.18.1 on Windows 10.
I tried a reboot and restarted VSCode. When it opened up, it opened the User Settings file. I have a custom block for the php version 5.4 that I use. This had some errors marked. I'm not sure if these errors were a result of the VSCode update or not. Anyway, I fixed the errors and restarted VSCode.
Still not working.
Then I noticed in my list of Extensions, the PHP Debug extension had an update button. I don't know what version it was, but after clicking on it, it's now at 1.12.1 and it's back working again.
Confirm the bug!!!
Ubuntu 16.04 LTS
Version 1.17.2 and insider version (1.19)
I have the same problem after update.
Also DEB packages were not updated properly (installation script hanged up)
This problem is serious.. do something with it already, please
I am also facing the same issue whenever I tries to step into the debugger stops with error : debug adapter process has terminated unexpectedly Here is my launch.json
{ "version": "0.2.0", "configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9000
}
]
}
Can confirm the error. Windows 8 PHP 7.1.8

Below my launch.json file
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9000
}
]
}
Any fix for this error?
Hi All,
I had same issue while I was start using VSCode. Well i took 3 hours to figure out what is exactly issue, I just stared with some step by step debugging like what port being used and what are the other settings.
Finally I was lucky and got the solutions :) So I created a page to share with everyone. You can check what is my findings and what you should need to setup to get Xdebug work with VSCode.
Link: How-to-setup-PHP-Debugging-xdebug-with-VSCode-Visual-Studio-Code
Hope my experience would be helpful for someone. Cheers!!!
Had the same issue this morning, worked yesterday night, updated VSCode to 1.22 and got the error above. Changed php.ini and launch.json to use port 9002, confirmed via netstat that nothing was using either 9000 or 9002, went back to VSCode 1.21, nothing. Had to disable auto-update and go back to PHP Debug 1.11 and now it works.
Same here. Updated VSCode to 1.22.2 and got the error.
@loppp @arby50 could you file a new issue, including some log output? You can always rollback to previous versions in the meantime: https://github.com/felixfbecker/vscode-php-debug/issues/149#issuecomment-381026098