New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid Debug Adapter #949
Comments
Hi. Are you on linux or on mac? Does this happen even if no debug session is established? It'd be really helpful if you could provide |
Thanks for the quick response. I'm on Debian 11.
That's correct. If I start, then stop the debug session, the "Invalid Debug Adapter" error is shown twice in the output window. Below is the debug console output. In this session, there is 1 breakpoint set.
|
Thanks. I'll try to reproduce it. Theres also an "extension bisect" process I'll ask you to do, if I can't reproduce the problem. Best! |
A little more about my setup. I'm working on a Wordpress plugin and using Local 8.2 (which includes Xdebug 3.3.0). For unit tests I've been using the Devsense PHP extension (v1.42.14626). I've disabled this extension for troubleshooting. The only other installed extension are .NET related. |
Devsense and this plugin are sadly incompatible and "strange things" happen. Does the error happen when Devsense is disabled? |
Yes, Devsense is disabled when the error occurs.
…On Tue, Jan 9, 2024, 8:54 AM Damjan Cvetko ***@***.***> wrote:
Devsense and this plugin are sadly incompatible and "strange things"
happen. Does the error happen when Devsense is disabled?
—
Reply to this email directly, view it on GitHub
<#949 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE44M2MX4SC7WHAW6LPTPP3YNVY55AVCNFSM6AAAAABBSNW4RGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBTGQZDGMZQGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I can confirm this does happen. I tried it on my windows PC and there it does not, then I tried Remote SSH to my debian VM and there I see it. When I stop the debugger, I get two of these exceptions. The exception seems to happen on the fronted tho (see the paths) In any case, debugging seems to work. I'll try to poke around this and report it to the vscode team... Version: 1.85.1 (user setup) |
PHP version: 8.3
Xdebug version: 3.3
VS Code extension version: 1.34.0
Your launch.json:
Xdebug php.ini config:
[xdebug]
zend_extension = /home/user/.config/Local/lightning-services/php-8.3.0+1/bin/linux/lib/php/extensions/no-debug-non-zts-20230831/xdebug.so
xdebug.mode=debug,develop
xdebug.client_port=9003
xdebug.start_with_request=yes
xdebug.discover_client_host=yes
Xdebug logfile (from setting
xdebug.log
in php.ini):VS Code extension logfile (from setting
"log": true
in launch.json):Code snippet to reproduce:
When stopping a debugging session (by clicking stop on the debug bar), the following is consistently displayed in the VSCode output window (with "Extension Host") selected.
2024-01-08 19:16:38.585 [error] Error: Invalid debug adapter
at v.m (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:1553:95)
at v.$acceptDAError (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:1552:7629)
at m.S (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:1561:18889)
at m.Q (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:1561:18655)
at m.M (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:1561:17748)
at m.L (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:1561:16827)
at o.value (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:1561:15630)
at u.y (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:87:1902)
at u.fire (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:87:2119)
at s.fire (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:616:14449)
at x.onmessage (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:1657:7802)
The text was updated successfully, but these errors were encountered: