6

I have jquery making an ajax call to another php file and cannot workout how to get netbeans and xdebug to stop at a breakpoint on this file. EG:

index.php

function ajaxfunc(){
    ...
}

other.php

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

Netbeans stops at code in index.php but not in other.php

4

1 回答 1

10

将 ?XDEBUG_SESSION_START=netbeans-xdebug 添加到您的 ajax url。

这将为您的 ajax 调用打开调试。确保您打开的项目中包含 other.php 文件。

于 2013-07-19T02:14:47.810 回答