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:
xdebug.remote_enable = 1
xdebug.remote_port = 9000
xdebug.idekey = PHPSTORM
xdebug.show_error_trace = 1
xdebug.remote_autostart = 0

All options for Xdebug

Follow on social media: