Good Luck!
Subscribe to my most-recent-items feed and know when new tutorials are posted:
My Other Tutorials:
Tutorial: How to Install Ruby on Rails with Instant Rails and Create a Website Using JEdit and the Ruby Plugin
How to Install Ruby on Rails with Instant Rails and Create a Website Using JEdit and the Ruby Plugin
Tutorial: How to Install the Android SDK on Windows XP and Create an Application that Runs in the Cell Phone Emulator
How to Install the Android SDK on Windows XP and Create an Application that Runs in the Cell Phone Emulator
Tutorial: Install Java on Windows XP and Learn the Basics of Java 6 using the NetBeans IDE
Install Java on Windows XP and Learn the Basics of Java 6 using the NetBeans IDE
Tutorial: How to Create a Website with Datapod
How to Create a Website with Datapod
Tutorial: Install Fedora 6 in VMWare on Windows XP and connect it to your network
Install Fedora 6 in VMWare on Windows XP and connect it to your network
Tutorial: Install Perl 5 on Windows XP and Get a Perl Hello World Running
Install Perl 5 on Windows XP and Get a Perl Hello World Running
Tutorial: Install Ubuntu 7.04 in VMWare on Windows XP and connect it to your network
Install Ubuntu 7.04 in VMWare on Windows XP and connect it to your network
Tutorial: Setup a PHP Development Environment on Windows XP With Apache, PHP 5, MySQL 5, SQLite, Eclipse, Subversion, PHPMyAdmin, and Datapod
Setup a PHP Development Environment on Windows XP With Apache, PHP 5, MySQL 5, SQLite, Eclipse, Subversion, PHPMyAdmin, and Datapod
Tutorial: Install OpenSuse 10.2 in VMWare on Windows XP and connect it to your network
Install OpenSuse 10.2 in VMWare on Windows XP and connect it to your network
T U T O R I A L  
1. Install 7-Zip  2. Install XAMPP Lite  3. Install Java  4. Install Eclipse  5. Make PHP Page  6. Use phpMyAdmin  7. Access MySQL from PHP  8. Make Font Smaller  9. Code Assist Features  10. Templates  11. Other Eclipse Features  12. Debugging  13. Make Your Development Environment Portable
12. Debugging
Debugging allows you to step through your code line by line as it executes as you monitor the values of variables, etc. Debugging is useful when you don't know quite where bugs in your code are occurring.
1.
Cut and paste the following code into a PHP file.
debugging code
post comment or question
2.
To start debugging, press  ALT-SHIFT-D  and then press  H  . Click the checkbox and then click  Yes .
start debugging
Karl K: Strangely, I didn't see this dialog. reply
Mer D.: I got a dialog saying that the "Zend Debugger protocol ID is older than the one you are using Some debugging features may not work properly! To download the latest Zend debugger version click here To download a PHP web server (Includes Zend Debugger click here" reply
post comment or question
3.
Check the box again and click  Yes  again.
click yes again
post comment or question
4.
You will see the debug cursor paused at the first line of code. Press  F6  to move it one line down. Keep pressing  F6  to move it through the code.
debug pointer
post comment or question
5.
In the variables view, you will see the values of the $names array.
see variables
post comment or question
6.
Stop the script by clicking on the red button.
stop debugging
post comment or question
7.
Set a breakpoint at line 6 by double-clicking in the bar to the left.
set break point
post comment or question
8.
Start debugging again by pressing  ALT-SHIFT-D  and then press  H .
debug again
post comment or question
9.
Press  F8  to jump to your breakpoint.
jump to break point
post comment or question
10.
To exit debugging, first stop the script.
stop script
post comment or question
11.
Then click the perspective icon and choose PHP.
exit debugging
post comment or question
Go to the next section:
This site was made with Datapod.