Helping ordinary people create extraordinary websites!
$1 CPM Advertising For A Limited Time Only
HOME TUTORIALS SCRIPTS WEB HOSTING BLOG FORUM
Get Our Newsletter
Email:

PHP Debugging with Zend Studio

By Michael J. Ross
2008-02-03


Stepping Through the Code

Using the Step Over command several times, we can step down through the code to line number 59, which calls the display_workers() function. If we then use the Step Into command, the debugger goes to line 43, which is the first line of code in that function. If we step forward to line 48, the $worker_data array has been populated with the first record. In the Debug window, if the Variables tab has been selected (as it is by default), then you can see the current defined variables, including that array. Clicking the "+" symbol expands the array, showing the individual elements and their current values.

As you continue to Step Over the lines of code, cycling within the "for" loop, you will see the elements of $worker_data automatically updated.

In the Debug Output window, in the Text panel, you will see all of the HTML resulting from the code executed up to that point.

The HTML tab shows the output as displayed by a Web server.

If at any point you Run the debugger to the end of the script, the Text tab will show the completed Web code.

The HTML tab shows the final Web page.



Tutorial Pages:
» Introduction
» Overview and Product Editions
» System Requirements
» Installation and Start Up
» User Interface and Preferences
» Debugging Basics
» Stepping Through the Code
» Breakpoints and Conditions
» Conclusion


Related Tutorials:
» Zend Framework Tutorial
» Port Scanning and Service Status Checking in PHP
» Web Database Access from Desktop Applications
» CubeCart 3.0 Installation and Configuration
» PHP Site Search Made Easy
» Installing and Configuring Drupal 6.1

Ask A Question
characters left.