Debugging Ajax PHP using NetBeans Xdebug

I have jQuery to make Ajax calls to another PHP file, and I can't study how to stop NetBeans and Xdebug at the breakpoint of this file

Index PHP

function ajaxfunc(){
    ...
}

other. PHP

<?PHP
    echo Whatever::doit();
    class Whatever(){
            public function doit(){
                $stopme="Now";
            }
    }
?>

NetBeans stop at index Code in PHP, but not in other Stop in PHP

Solution

Will? XDEBUG_ SESSION_ Start = NetBeans Xdebug add to your Ajax web site

This will open debugging for your Ajax calls Make sure that the project you open contains other PHP files

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>