断点未在phpstorm + xdebug中命中 [英] breakpoint does not hit in phpstorm+xdebug

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

问题描述

操作系统:Windows 7 Web服务器:xampp 1.8.2(php版本:5.4.27) phpstorm:6.0.3

在php.ini中:

[XDebug]
zend_extension = "D:\xampp\php\ext\php_xdebug-2.2.4-5.4-vc9.dll"
;xdebug.default_enable=1 
;xdebug.auto_trace=1
;xdebug.show_exception_trace = 1  
;xdebug.collect_vars = 1 
;xdebug.collect_params=1
;xdebug.collect_return=1
;xdebug.profiler_append = 1
;xdebug.profiler_enable = 1
;xdebug.profiler_enable_trigger = 1
xdebug.profiler_output_dir = "D:\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 0
;xdebug.remote_autostart = off 
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "localhost"
xdebug.trace_output_dir = "D:\xampp\tmp"
xdebug.remote_mode = "req"
xdebug.remote_port = 9001
xdebug.idekey="PHPSTORM"

当我在phpstorm中调试Web应用程序时. xdebug正在运行,但与运行相同. 我已经设置了一些断点,但是它并不止于此.

解决方案

由于xdebug.remote_enable = 0配置行,您已禁用调试器.

必须为1(启用/启用).

http://confluence.jetbrains.com/display/PhpStorm/Xdebug+安装+指南

os: windows 7 web server: xampp 1.8.2 (php version: 5.4.27) phpstorm: 6.0.3

in php.ini:

[XDebug]
zend_extension = "D:\xampp\php\ext\php_xdebug-2.2.4-5.4-vc9.dll"
;xdebug.default_enable=1 
;xdebug.auto_trace=1
;xdebug.show_exception_trace = 1  
;xdebug.collect_vars = 1 
;xdebug.collect_params=1
;xdebug.collect_return=1
;xdebug.profiler_append = 1
;xdebug.profiler_enable = 1
;xdebug.profiler_enable_trigger = 1
xdebug.profiler_output_dir = "D:\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 0
;xdebug.remote_autostart = off 
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "localhost"
xdebug.trace_output_dir = "D:\xampp\tmp"
xdebug.remote_mode = "req"
xdebug.remote_port = 9001
xdebug.idekey="PHPSTORM"

when I debug web application in phpstorm. xdebug is working but as same as running. I have set some breakpoints, but it does not stop there.

解决方案

You have debugger disabled because of xdebug.remote_enable = 0 config line.

It has to be 1 (on/true).

http://confluence.jetbrains.com/display/PhpStorm/Xdebug+Installation+Guide

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

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