Closed jnagler closed 1 year ago
Hi, the output seems a bit strange. The code of this extension does not have a string Listening to Xdebug on port
. Can you check the version and ID of the installed extension. Click on the installed extension, it should be on the right.
Sorry if I should have mixed-up things: More Info Published 29.12.2015, 17:55:50 Last released 9.10.2022, 08:52:39 Last updated 9.11.2022, 14:20:26 Identifier xdebug.php-debug
at least clicking on Sponsor leads me to you https://github.com/sponsors/zobo and clicking on the extension name leads me to https://marketplace.visualstudio.com/items?itemName=xdebug.php-debug and from there I got here.
I grep'ed through the extensions and found that the string "Listening to Xdebug" belongs to devsense.phptools-vscode. I was not aware both extensions provide the same functionality. Is it known on how to make your extension handle debugging instead of devsense php?
Ah, that makes sense. I'm not aware how to force the debug client in vscode to use a specific debug adapter. You can temporarily disable devsense?
I can only temporarily disable devsense as there is a lot of other stuff I use from that extension. I will check whether I can switch off the debug adapter part or will try to find out how to organize priorities for multiple ones. Your port setting is all numeric (in contrast to devsense) and works well as well as the proxy setting. All as expected... at least a success for me after half a day of thinking I get mad.
We had a static proxy setup so far using fixed PORT and IDEKEY mappings for every developer, e.g. (3005/vscjnagler) - launch.json was adjusted for parameter port only: { "name": "Listen for Xdebug", "type": "php", "request": "launch", "port": 9005 }
with starting the proxy to listen on 9003 for Xdebug (dbgpProxy assumes 9000 as default) and 9001 (the default) for clients and using the proxyinit command to register IDEKEY for PORT:
dbgpProxy says "Added connection for IDE Key 'vscjnagler': 127.0.0.1:9005" and vscode-php-debug says in the debug console "Listening to Xdebug on port 0.0.0.0:9005 ..." and the debugger runs to the first breakpoint.
I just saw the new feature to configure a proxy and therefore I assume this will take over the proxyinit. But adding the following to the configuration
shows no effect. The proxy log is silent, no
as with our manual proxyinit nor any other sign of vscode-php-debug is connecting it or interpreting the proxy section at all.
PHP version: 7.4.32 (RHEL 8.6, Remi's RPM repository) Xdebug version: 3.1.5 VS Code extension version: 1.29.0
Xdebug php.ini config: ; defaults except zend_extension=xdebug.so xdebug.log = /var/log/httpd/xdebug.log xdebug.mode = develop,debug,trace
Xdebug logfile (from setting
xdebug.log
in php.ini): emptyVS Code extension logfile (from setting
"log": true
in launch.json):