使用netbeans xdebug调试ajax php
发布时间:2020-12-14 05:47:23 所属栏目:Java 来源:网络整理
导读:我有 jquery对另一个php文件进行ajax调用,并且无法研究如何让netbeans和xdebug停在此文件的断点处. 例如: 的index.php function ajaxfunc(){ ...} other.php ?php echo Whatever::doit(); class Whatever(){ public function doit(){ $stopme="now"; } }? N
我有
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文件. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |