【问题标题】:debug ajax php with netbeans xdebug使用 netbeans xdebug 调试 ajax php
【发布时间】:2013-06-17 09:24:21
【问题描述】:

我有 jquery 对另一个 php 文件进行 ajax 调用,但无法锻炼如何让 netbeans 和 xdebug 在此文件的断点处停止。 例如:

index.php

function ajaxfunc(){
    ...
}

其他.php

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

Netbeans 停在 index.php 中的代码,但不在 other.php 中

【问题讨论】:

    标签: ajax netbeans xdebug


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 2014-05-21
      • 2010-10-16
      • 2020-11-21
      • 2011-02-26
      • 2011-12-10
      • 1970-01-01
      • 2012-04-06
      • 1970-01-01
      • 2012-05-17
      相关资源
      最近更新 更多