This is for contributing to WooCommerce development here not developing client sites with WooCommerce.
configuration in launch.json
JSON
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9003,
"pathMappings": {
"/var/www/html/wp-content/plugins/woocommerce": "${workspaceFolder}/plugins/woocommerce"
}
},
start xdebug with wp-env
JAVASCRIPT
// I don't have a proper syntax highlighter set up for this
// this is in the terminal when you're starting the Docker environment
% pnpm -- wp-env start --xdebug
Leave a Reply