Debugging PHP With Xdebug

By Mark Niebergall

Debugging in PHP can be tedious and prone to errors when using var_dump and echo statements. Xdebug is a powerful tool that can be used for debugging PHP more effectively and for gaining better insights into what an application is actually doing. In this article we will cover setting up an PhpStorm with Xdebug, how to use various browsers to enable debugging that will let you step into code and see variable values live, and how to extend those debugging capabilities into the command line interface (CLI), REST APIs, and SOAP clients.

This article was originally published in the August 2018 issue of php[architect] magazine. To read the complete article please subscribe or purchase the complete issue.

Related Articles

Leave a comment

Use the form below to leave a comment: