xdebug不激活断点 [英] xdebug does not activate the breakpoint

查看:162
本文介绍了xdebug不激活断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Netbeans来做我的项目(codeigniter)和我的xdebug配置在php ini。以下是设置:

I am using Netbeans to do my project(codeigniter) and my xdebug is configured in php ini. The following are the setting:


zend_extension = "C:\xampp\php\ext\php_xdebug.dll"
;xdebug.profiler_append = 0
;xdebug.profiler_enable = 1
;xdebug.profiler_enable_trigger = 0
;xdebug.profiler_output_dir = "C:\xampp\tmp"
;xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.remote_autostart = 1
xdebug.idekey = "netbeans-xdebug"
xdebug.remote_log="C:\xampp\tmp\xdebug.log"
xdebug.remote_port=9001

Php信息显示xdebug已激活。我在登录方法中将变量设置为断点并开始调试。显示登录页面上的链接:

Php info shows that xdebug is activated. I set the breakpoint at on of the variable in the login method and started to debug. The link at the login page appears:

localhost / goldilock / index.php?XDEBUG_SESSION_START = netbeans-xdebug

localhost/goldilock/index.php?XDEBUG_SESSION_START=netbeans-xdebug

登录后,断点未激活,我无法调试,并且链接的XDEBUG_SESSION_START = netbeans-xdebug部分消失。

After login in, the breakpoint is not activated and I can't debug and the XDEBUG_SESSION_START=netbeans-xdebug part of the link disappears.

有任何方式调试可以激活。我找不到任何解决方案来激活调试器到断点。

Is there any way the debugging can be activated. I can't find any solution to activate the debugger to the breakpoint.

xdebug.log说如下:

The xdebug.log says the following:


Log opened at 2013-07-01 05:40:22
I: Connecting to configured address/port: 127.0.0.1:9000.
E: Could not connect to client. :-(
Log closed at 2013-07-01 05:40:23

Log opened at 2013-07-01 05:40:35
I: Connecting to configured address/port: 127.0.0.1:9000.
E: Could not connect to client. :-(
Log closed at 2013-07-01 05:40:36

Log opened at 2013-07-01 05:40:38
I: Connecting to configured address/port: 127.0.0.1:9000.
E: Could not connect to client. :-(
Log closed at 2013-07-01 05:40:39

Log opened at 2013-07-01 05:40:39
I: Connecting to configured address/port: 127.0.0.1:9000.
E: Could not connect to client. :-(
Log closed at 2013-07-01 05:40:40


推荐答案

这是我在Derick的回答帮助下做的:

This is what I did with the help of Derick's answer:

步骤1:更改xdebug .remote_port = 9000 to xdebug.remote_port = 9001

Step 1: Change xdebug.remote_port=9000 to xdebug.remote_port=9001

步骤2:


  1. 进入工具>>选项>>点击PHP选项卡

  2. 在PHP选项卡下点击调试

  3. 更改调试器端口: 9001

  4. 更改会话ID:netbeans-xdebug

  1. Change the debugging port in Netbeans. Go to Tools >> Options >> Click PHP tab
  2. Under PHP tab click debugging
  3. Change the debugger port : 9001
  4. Change Session ID : netbeans-xdebug

步骤3:重新启动服务器和netbeans

Step 3: Restart server and netbeans

步骤4:设置断点并尝试

Step 4: Set a breakpoint and try

这篇关于xdebug不激活断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆