PRODUCTS |  BUY ONLINE |  DOWNLOADS |  NUSPHERE 
 

Dear NuSphere Friends,

The value of a solid and robust PHP debugger is obvious when it comes to debugging your own scripts; but it's even more important when dealing with the 3rd party scripts that are so commonly found in PHP AJAX Frameworks.

In this month's issue, learn why print statements are simply not a reliable debugging strategy, particularly when it comes to using AJAX frameworks. To illustrate why, we've published an example of how to use PhpED for debugging on XOAD, a widely used PHP AJAX framework. You can skim the highlights below, or read the full article entitled: Demystifying AJAX frameworks for free today.

Sincerely,
The NuSphere Team

1) Shocking PHP AJAX Framework Secrets Revealed (with NuSphere PhpED!)

If you're even considering using any of the new PHP AJAX frameworks but are still stuck using print statements to troubleshoot your PHP applications, then here are a few reasons to reconsider your debugging strategy:
The A in AJAX stands for Asynchronous: Asynchronous means that the calls from the client to the server scripts aren't synchronized, rendering print-statement-based debugging useless.

The J in AJAX stands for JavaScript: AJAX frameworks produce a ton of JavaScript code. (It's just how they work.) As a result, it's you'll be dealing with calls to the methods of PHP classes which in turn generate even more JavaScript, etc. With so much JavaScript flying around you'll need a PHP debugger just to figure out where to put your print statements!

Got Product Documentation? PHP frameworks (along with most other software) are often poorly documented. But an experienced developer will take a solid and robust PHP debugger over a pile of product documentation any day, simply because it's often easier step through the code and see for yourself exactly what the PHP code is doing. Ask yourself: Do I really want to read a manual?

View Source: Inspection of the HTML source code generated by a framework can help you understand what's going on, provided that you can actually see the source. Unfortunately, quite often you can't, since in AJAX, your HTML is often dynamically generated by JavaScript and so if you try to View->Source, what you see is not always what you get.


We could go on but we think you get the point by now. PHP Frameworks are fantastic for application development and can save you tons of time, but only with the right PHP IDE featuring a powerful and robust PHP debugger, which provide the following benefits:
Step through PHP Code: Step through and step into any line of PHP code and trace the logic from the first method call to any class of the Framework all way up to the first ancestor of the class.

Output Window: Using PhpED's debugger output window see which lines of HTML or Javascript are produced by each call to the Framework classes - just when they are about to be sent back to the client. The mystery of "who made that HTML or Javascript line" is solved forever!

Set Execution Point: Using the Set Execution Point feature of the DBG PHP debugger (only available in PhpED), you can resume program execution to anywhere in your application.

Breakpoints: Set the break points anywhere in you PHP code and stop at them using either simple condition or even an Expression True Global

Server Side Script Debugging: Leverage debugging on AJAX calls made to server side scripts with calls to the DebugBreak() function provided by DBG. You can also use DBGSESSID which is passed in the AJAX's call to the server

OK so this is all great in theory - but to make thinks more concrete, we've published a real-world example of how to use PhpED for debugging of XOAD, an industry leading PHP AJAX framework. So what are you waiting for? Download or purchase our award winning PHP IDE today and simplify development on PHP AJAX Frameworks today!












 March 2007

ISSUE HIGHLIGHTS:

>other news
 
Copyright 1999-2007, NuSphere Corporation