您的位置:首页 > 编程语言 > PHP开发

phpstudy+Notepad+DBGp xdebug 调试php

2016-09-03 17:34 323 查看
[XDebug]
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir ="D:\ruanjian\phpStudy\tmp\xdebug"
xdebug.trace_output_dir ="D:\ruanjian\phpStudy\tmp\xdebug"
xdebug.profiler_output_name = "cache.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"

zend_extension="D:\ruanjian\phpStudy\php53\ext\xdebug.dll"
xdebug.remote_port = 9000
xdebug.idekey = default


phpstudy  软件  php53   里 php.ini 修改如上

安装DBGp  
点击下载

一、安装DBGPPlugin。将dbgpPlugin.dll解压到Notepad++/plugins目录即可。

二、配置DBGPPlugin。菜单:插件->DBgp->Config,弹出DBgp配置窗口,配置如下



使用DBGPPlugin进行调试。

                1)菜单:插件->DBgp->Config->Debugger,出现调试窗口。

                2)用notepad++打开要调试的php文件,在浏览器中输入地址并加上参数XDEBUG_SESSION_START=1如:http://localhost/index.php?XDEBUG_SESSION_START=1

                3)此时如果发现任务栏的Notepad++ 窗口闪烁,则说明DBGp配置成功。光标将会停留在第一行等待,此时可进行单步跟踪了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息