Can I see object sent from ajax to php in php with a debugger? <p>I have a problem, I make an ajax call to a php file and I send a json object as a param from ajax/javascript to php, then php is supposed to do some logic with that object and return it with echo <code>json_encode('whatever');</code> My problem is when I'm working with the javascript object in php I'm blind, because my ajax call only have the success or the error function to "know" what hapenned in php, but I would like to know what mechanism can I use to see what happens inside php, like for example print the object received from ajax and see whatever is inside of it. How can I debug when I'm inside a php file called from ajax?? I've tryed chrome debuger and also firebug, and followed both tutorials, but I don't even see the php file that is called from ajax, so I can't set breakpoints into it. This is my code to do the ajax call to my php file and my php file that echos whatever information back:</p> <pre><code>function loadFormAdvanced(advancedFormVars) { var json = new Array(); json = '['; for (var prop in advancedFormVars) { if (advancedFormVars.hasOwnProperty(prop)) { // or if (Object.prototype.hasOwnProperty.call(obj,prop)) for safety... json += '{"' + prop + ":" + advancedFormVars[prop] + '},'; } } json += ']'; $.ajax({ url: 'AL_loadForm.php', type: 'POST', data: { advancedFormVars: json //"[{"OfferID:"OfferID"},{"offerName:"Offer Name"},{"campaignID:"CampaignID"},{"campaignName:"CampaignName"},{"offerIDFilt:"OfferID"},{"dates:"Dates"},]" }, dataType: 'json', success: function (data) { alert(data); }, error: function (request, error) { alert("Error: please fill the required fields"); } }); } </code></pre> <p>What I would like is to be abble to see what happens in my php file, or for example, to see the content of <code>$val</code> variable. </p>