How to Use a Debugger in PHP

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • SonarLint - Clean code begins in your IDE with SonarLint
  • SaaSHub - Software Alternatives and Reviews
  • DataTables

    Example of uses for jQuery DataTables and PHP (by leeway-academy)

    In this section, you'll get to see two of the most typical usages of XDebug: debugging a web application and debugging a CLI application. For demonstration purposes, I'll be using the code located in this repository

  • xDebug

    Xdebug — Step Debugger and Debugging Aid for PHP

    XDebug

  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.

  • web-pecl

    The PECL website

    If you don't have the opportunity to use a package manager, you can still install it easily via PECL:

  • Visual Studio Code

    Visual Studio Code

    Any IDE can probably be used to debug PHP with XDebug, but since it’s free and popular, I'll use VSCode as an example.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts