https://dev.to/krixnaas #install-xdebug Install xDebug sudo apt-get install php-xdebug; or specify the version sudo apt-get install php7.4-xdebug; #initialize-php-with-xdebug Initialize PHP with xDebug In those same 2 directories named 7.4 and 8.0, you will find a php.ini file. We need ton configure xdebug. Just add the following in the php.ini file: [XDebug] zend_extension = xdebug.so xdebug.mode = debug xdebug.start_with_request = yes xdebug.discover_client_host = true xdebug.idekey = VSC xdebug.client_host = host.docker.internal xdebug.client_port = 9003 #install-php-debug-extension Install PHP Debug Extension https://res.cloudinary.com/practicaldev/image/fetch/s--dw_tq1b9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c1qo0jflepus1x63bw8c.png I’ll show you how to configure VSCode to start debugging, but the configuration should be similar for other editors.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners