Debugging PHP on Linux with Xdebug and PHPStorm

Debugging PHP on Linux with Xdebug and PHPStormThe following video describes how to debug PHP applications using PHP Xdebug extension and PHPStorm on Ubuntu.

We will see three options on how to debug:
1. Using the URL query parameter which is possible in all browsers.
2. Using bookmarks, which is also possible in all browsers
3. And using chrome extension which is possible only for chrome.

Code to insert into your xdebug.ini file:
zend_extension=”xdebug.so”
xdebug.remote_enable = 1
xdebug.remote_port = 9000
xdebug.idekey = PHPSTORM
xdebug.show_error_trace = 1
xdebug.remote_autostart = 0

All options for Xdebug
https://xdebug.org/docs/all_settings

Follow on social media:
https://www.facebook.com/thecodeholic
https://twitter.com/thecodeholic
https://github.com/thecodeholic