Zend Studio for Eclipse Training: Day 3/4

Posted by: Jordan in ProgrammingPHP on

Since there wasn't many sections to go over and the features that we went over are easy to use (and self explanatory) I decided to combine Day 3 and 4 into one blog.  Luckily I didn't have the same problem on Day 4 as I did on Day 3 which I described here: Cracking Vista Passwords.

As always I'll use this blog to take notes with, more for my reference than for yours.  The class covers a lot of material so I'll just mention the most intriguing things per day.

Day 3

Bookmarks
Zend Studio for Eclipse allows you to bookmark certain areas of code. The first thing we went over on Day 3 was booking functions.  The bookmarking feature makes it easy to add locations of code and return to that code location at a later date.  If you are like me then you bounce between functions and code often.  This will be a very useful feature.

Testing and Debugging with Zend Studio
The next thing we discussed was debugging with Zend Studio.  The IDE offers a Debug perspective which allows you to walk through code, change variables, and step into/out of code.  The perspective was much like any other professional IDE that I had used before and didn't offer anything "new" or exciting.  Below is a screenshot of the error pane.

Error Pane:
 

Day 4

Browser Integration
The Zend Toolbar for FireFox gives you the option to debug PHP directly from your browser. It allows you to debug individual pages/PHP files, Form Submission, Next Page and All Pages on the Site.  It may not sound like much but this feature will save you the time to find and load the PHP file you wish to debug. With the browser debugger you can set variables as the submit, change cookie information, and control program flow.  This can be very valuable when debugging AJAX. 

From the help file:
If the file you would like to debug exists in your workspace, you can choose to debug the workspace copy of your file by going to Extra Stuff | Settings on the Toolbar and selecting the 'Debug Local Copy' option. If path mapping has not yet been configured, a path mapping dialog will be displayed once the debugging session is launched to determine which workspace files will be debugged.

 

The only requirement you need is the Zend debugger extension added to your php.ini file.  You can find instructions here.





Trackback(0)
Comments (0)add comment

Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
smile
wink
laugh
grin
angry
sad
shocked
cool
tongue
kiss
cry
smaller | bigger

busy