What is the best debugging tool to debug an AJAX request in PHP? I want to check if a method was run in class.php when calling an AJAX function.
For instance:
$.ajax({ url: 'classes/MyClass.php/GetItems', data: { 'catgry': cat }, dataType: 'json', success: function (data) { alert("data recived!"); }, error: function (jqxhr, textStatus, errorThrown) { alert("error"); } });
Myclass.php
public function GetItems($catgry) { $ret = $itmObj->GetItemsByCat($catgry); return $ret; }
source share