- Install xdebug for debian:
sudo apt-get install php-xdebug
- Open php.ini to edit
-
Location for php artisan serve or built in server:
/etc/php/8.1/cli
-
Location for apache:
/etc/php/8.1/apache2
[xdebug]
zend_extension=xdebug.so
xdebug.mode=debug
xdebug.client_host=127.0.0.1
xdebug.idekey=PHPSTORM
-
- Phpstorm: In the Settings/Preferences dialog (Ctrl+Alt+S), click PHP.
- Set CLI Interpreter
- Install chrome extension: https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc
- Set CLI Interpreter
- Now set breakpoint & reload page in browser
Last active
September 15, 2022 05:55
-
-
Save manashcse11/b4da2a91eb3521a0450b8f623d244030 to your computer and use it in GitHub Desktop.
Configure xdebug with phpstorm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment