我有
jquery对另一个PHP文件进行ajax调用,并且无法研究如何让netbeans和xdebug停在此文件的断点处.
例如:
例如:
的index.PHP
function ajaxfunc(){ ... }
other.PHP
<?PHP echo Whatever::doit(); class Whatever(){ public function doit(){ $stopme="Now"; } } ?>
Netbeans停在index.PHP中的代码但不在other.PHP中停止
解决方法
将?XDEBUG_SESSION_START = netbeans-xdebug添加到您的ajax网址.
这将打开你的ajax调用的调试.确保您打开的项目中包含other.PHP文件.