I am a big fan of print_r(), it lets me dump my arrays and fix accordingly. But when building the php page that will communicate with JS file it always a pain syncing them together because I’m basically coding the php file blind.
Example (what caused me to write this post): I forgot a close bracket in an if() statement, normally that would take me all of 5 seconds to find/fix. But to find the problem I had to fake all my post variables and run the php file directly… I know it’s not much but it adds up FAST.
Does anyone know of a better way? Is there some tweaking that can be done to the JS so that it basically bumps everything the php file returns including errors… dumps…?
Thanks,
-aPeg