How to debug AJAX requests? How do I know which PHP function is being called?

I am debugging Ajax calls.

How to find out which specific PHP function is called when ajax is called?

I can only see the request and javascript code starting the request, but I don’t know how the request is processed on the server side?

I am currently checking all the PHP code, but I was wondering if there is an easier way.

thank

+3
source share
6 answers

Ajax- , script. script, "" ( , script), exectued.

+3

php-, zend xdebug. eclipse pdt IDE.

, , , echo var_dump php-, firefox firefox ajax-, -.

+1

FireBug FirePHP. FirePHP PHP FireBug. , , , , /.

0

firebug . function1 echo foo, echo bar 2, ... .

, Safari / ajax PHP script - .

0

Firefox Addon FireBug, .

http://www.daniweb.com/web-development/php/code/216729

, , Ajax -, - .

, : [ ] PHP AJAX β†’ -/-,

[ 2 , ] PHP AJAX β†’ - PHP β†’ -/-,

, " " .

[] - - , , .

0

Source: https://habr.com/ru/post/1774259/


All Articles