Ceci est une ancienne révision du document !
VSCode
Raccourcis clavier
Ouvrir la palette de commandes
Ctrl+Shift+P
Debugging
Configuration
{
"configurations": [
{
"name": "Listen for Xdebug",
"type": "php",
"request": "launch",
"port": 9003,
"pathMappings": {
"/usr/local/apache2/htdocs": "${workspaceFolder}"
},
"stopOnEntry": false,
"log": false
}
Debugging à distance via tunnel SSH
$ ssh -R 9003:localhost:9003 devsi $ cat /etc/ssh/sshd_config [...] GatewayPorts yes [...] $ cat /path/to/xdebug.ini [xdebug] xdebug.mode=debug xdebug.discover_client_host=Off xdebug.start_with_request=yes xdebug.max_nesting_level=256 xdebug.log=/var/log/xdebug.log xdebug.client_host=befez-workstation xdebug.remove_connect_back=0