{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9003,
"log": true
},
php -d xdebug.mode=debug artisan serve
Xdebug: [Step Debug] Could not connect to debugging client. Tried: localhost:9003 (through xdebug.client_host/xdebug.client_port) :-(
Everything
checked, it shows one break per exception + one break for the fatal error (because there is an uncaught exception). If I only check the Error
nothing is shown, even the fatal error (that is shown when Everything
is checked..). Is there way to break only on uncaught exceptions, and ignore caught ones?
Good morning all. I'm having some trouble I was hoping you could help with.
When I run the listen for xdebug launch configuration, the bar at the bottom never turns from blue to orange, and the listener process dies almost instantly. I've tried hunting around for logs within vscode but can't seem to find anywhere that describes why the listener process is dying. Any ides on where to look for logs?
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9005,
"log": true,
"pathMappings": {
"/var/www/cloud": "${workspaceRoot}"
}
},
And I am on Fedora 33
Hello, everyone. I'm using docker and wsl2 to run my web server. I met trouble in configuring xdebug. It seems that my php-fpm could not connect to my vscode, however, my vscode is listening port correctly. Here's my php.ini set
[XDebug]
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
;xdebug.remote_handler = "dbgp"
; Set to host.docker.internal on Mac and Windows, otherwise, set to host real ip
xdebug.remote_host = host.docker.internal
;xdebug.remote_port = 9000
xdebug.remote_log = /var/log/php/xdebug.log
And here's my vscode set
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000,
"pathMappings": {
"/www/tp": "/home/leo/dnmp/www/tp",
},
"log":true
}
My vscode is open wsl2 folder and I think it's running in wsl2. I guss that I send request from browser in windows, and windows received xdebug's request but it didn't trans it to wsl2. Can anybody help? Thanks very much.
Hi, everybody. I've solved my problem. I set windows to let it trans request to wsl2 and it worked! Here's my setting
netsh interface portproxy add v4tov4 listenaddress=192.168.1.105 listenport=9001 connectaddress=172.27.144.1 connectport=9001
Here's the solution I've found. Thanks for your attention!
XDebugError: command is not available
at new Response (/Users/maabel/.vscode/extensions/felixfbecker.php-debug-1.14.5/out/xdebugConnection.js:58:19)
at Connection.<anonymous> (/Users/maabel/.vscode/extensions/felixfbecker.php-debug-1.14.5/out/xdebugConnection.js:613:20)
at Generator.next (<anonymous>)
at fulfilled (/Users/maabel/.vscode/extensions/felixfbecker.php-debug-1.14.5/out/xdebugConnection.js:5:58)
at processTicksAndRejections (internal/process/task_queues.js:94:5) {
code: 5,
name: 'XDebugError'
}
Has anyone encountered this?
Launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "docker.drupal.com",
"type": "php",
"request": "launch",
"port": 9000,
"pathMappings": {
"/etc/drupal/sites_d7": "${workspaceRoot}/sites_d7"
}
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9000,
},
]
}
I followed the install instructions but XDebug does not show in phpinfo()
output. I am running PHP 7.4.9 on a local MAMP server. Here's what I added to php.ini
(the one from my MAMP installation):
[xdebug]
zend_extension = /Applications/MAMP/bin/php/php7.4.9/lib/php/extensions/no-debug-non-zts-20190902/xdebug.so
xdebug.mode = debug
xdebug.start_with_request = yes
xdebug.client_port = 9000
Does anyone have an idea what the problem might be?