Debugging PHP in Zend Studio

This tutorial will teach you how to debug files and applications to gain maximum efficiency and accuracy from your PHP code.

Zend Studio's Debugging feature can detect and diagnose errors in PHP code situated locally or on remote servers. The debugger allows you to control the execution of your program by setting breakpoints, suspending launched programs, stepping through your code, and examining the contents of variables.

Debugging should be used at stages where your scripts and applications are formed sufficiently to be tried and tested.

Tutorial Content

In this tutorial, you will learn:

  • To create a new local PHP project
  • To create a new PHP file
  • To set breakpoints
  • To debug a PHP file as CLI
  • To debug a PHP file as a Web application

Provided Items

  • Throughout the tutorial, you will be provided with code snippets to insert in your project.


Related Media

To better understand the procedures described in this tutorial, watch this video: