View unanswered posts | View active topics It is currently Fri Dec 01, 2023 4:31 am

Reply to topic  [ 4 posts ] 
 Shocking PHP AJAX Framework Secrets Revealed (with NuSphere's PhpED PHP Debugger) 
Author Message
Junior Member

Joined: Mon Oct 16, 2006 3:41 pm
Posts: 25
Post Shocking PHP AJAX Framework Secrets Revealed (with NuSphere's PhpED PHP Debugger)
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.
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.
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 [url= our] our[/URL] award winning PHP IDE ( today and simplify development on PHP AJAX Frameworks today!

Tue Apr 17, 2007 10:35 am
Junior Member

Joined: Sat Nov 12, 2011 2:54 am
Posts: 2
Post Re: Shocking PHP AJAX Framework Secrets Revealed (with NuSph
I must say that it was extremely informative and valuable to have known more about the PHP AJAX Framework world. NuSphere has done a brilliant job by coming up with the PHP Debugger. From what I can understand, this is the most reliable and practical PHP debuggers out there.

Wed Nov 23, 2011 10:10 pm
Junior Member

Joined: Mon Dec 26, 2011 2:48 am
Posts: 2
Post Re: Shocking PHP AJAX Framework Secrets Revealed (with NuSph
It was really nice to learn more of the details of PHP AJAX Framework. As far as I can see, most of what is detailed here are unknown to the majority of the PHP users. It was really shocking for me to learn the value and role a robust and solid PHP debugger from NuSphere’s PHPEd plays.


Mon Dec 26, 2011 9:22 pm
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
© Copyright 2003-2008 The ultimate PHP Editor and PHP IDE site.