简体   繁体   English

使用xdebug和netbeans调试CakePHP 2.4应用程序不起作用

[英]Debugging CakePHP 2.4 app with xdebug and netbeans does not work

I am trying to debug a CakePHP 2.4 app. 我正在尝试调试CakePHP 2.4应用程序。 My setup is a WAMP server with PHP 5.3.13 and xDebug 2.2.5. 我的设置是使用PHP 5.3.13和xDebug 2.2.5的WAMP服务器。 I am using NetBeans 8.0 我正在使用NetBeans 8.0

This is my php.ini settings: 这是我的php.ini设置:

    zend_extension = c:\wamp\bin\php\php5.3.13\ext\php_xdebug-2.2.5-5.3-vc9.dll

    [xdebug]
    xdebug.remote_enable = on
    xdebug.remote_handler=dbgp
    xdebug.remote_host=127.0.0.1
    xdebug.remote_port=9000
    xdebug.idekey="netbeans-xdebug"
    xdebug.remote_autostart=on
    xdebug.profiler_enable = on
    xdebug.profiler_enable_trigger = on

When I start a debug session on NetBeans it says in status bar netbeans-xdebug running . 当我在NetBeans上启动调试会话时,它在状态栏中显示netbeans-xdebug running And also my phpinfo() show that xDebug is loaded, but the website I try to debug is blank white and loading takes forever with no result. 我的phpinfo()显示xDebug已加载,但是我尝试调试的网站是空白的白色,并且加载将永远没有结果。

I am loading index.php and it is rewrited by xDebug as: 我正在加载index.php,它被xDebug重写为:

    http://localhost/webakis3dev/index.php?XDEBUG_SESSION_START=netbeans-xdebug 

I think it has something to do with XDEBUG_SESSION_START=netbeans-xdebug part. 我认为这与XDEBUG_SESSION_START = netbeans-xdebug部分有关。 Typically i would use: 通常我会使用:

    http://localhost/webakis3dev/index.php to access index.php.

No need to help, I found what problem was on NetBeans, i needed to press continue(F5) on each request for it to load. 无需帮助,我发现NetBeans出了什么问题,我需要在每个请求上按Continue(F5)进行加载。

In order to avoid this behavour, I needed to disable 'Stop at first line' checkbox in debugging options window of NetBeans 为了避免这种行为,我需要在NetBeans的调试选项窗口中禁用“在第一行停止”复选框

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM