Snippets Collections
// Configurration for lanch.json

{
	"version": "0.2.0",
    "configurations": [
        {
          	"name": "Listen for XDebug",
          	"type": "php",
          	"request": "launch",
          	"port": 9000,
          	"pathMappings": {
            	"/var/www/project/": "${workspaceFolder}/site/project/"
            }
    	}
    ]
}


    
// Content of xdebug.ini on server
    
zend_extension=xdebug.so

xdebug.remote_enable=1
xdebug.remote_autostart=1
xdebug.remote_host=10.0.2.2
xdebug.remote_port=9000
xdebug.remote_connect_back=1
xdebug.remote_cookie_expire_time=30
xdebug.idekey=vscode
xdebug.max_nesting_level=512

xdebug.profiler_enable=0
xdebug.profiler_output_name=xdebug.out.%t
xdebug.profiler_output_dir=/vargrant/profiler
xdebug.profiler_enable_trigger=1
  
  
// To install xdebug on server run
sudo apt-get install php-xdebug
// Edit xdebug.ini
sudo nano /etc/php/mods-available/xdebug.ini

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension