php学习笔记---PHPstorm设置断点
2017-09-20 16:05
274 查看
1.为php安装xdebug,方法在上一篇中有详细介绍
2.注意这个时候需要修改php.ini内容如下:
[Xdebug]
zend_extension_ts ="d:/wamp/php/ext/php_xdebug-2.1.2-5.2-vc6.dll"
xdebug.auto_trace=On
xdebug.collect_params=On
xdebug.collect_return=On
xdebug.trace_output_dir="d:/wamp/php/debuginfo"
xdebug.profiler_enable=On
xdebug.profiler_output_dir="d:/wamp/php/debuginfo"
xdebug.idekey=PhpStorm
xdebug.remote_enable=on
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
3.phpstorm配置
客户端调试,打开phpStorm,进入File>Settings>PHP>Servers,这里要填写服务器端的相关信息,name填localhost,host填localhost,port填80,debugger选XDebug
进入File>Settings>PHP>Debug,看到XDebug选项卡,port填9000,其他默认
进入File>Settings>PHP>Debug>DBGp Proxy,IDE key 填 phpStorm,host 填localhost,port 填80
点OK退出设置。
4.浏览器设置
chrome有插件xdebug helper下载后,设置白名单为localhost也就是默认localhost,才显示小虫子的图标
5.启动断点:
在phpstorm中设置断点后,启动监听,就是电话一样的图标,然后用chrome浏览localhost中的指定断点的文件,会自动进入断点,在phpstorm中看到调试信息。
具体的细节还在学习中。
2.注意这个时候需要修改php.ini内容如下:
[Xdebug]
zend_extension_ts ="d:/wamp/php/ext/php_xdebug-2.1.2-5.2-vc6.dll"
xdebug.auto_trace=On
xdebug.collect_params=On
xdebug.collect_return=On
xdebug.trace_output_dir="d:/wamp/php/debuginfo"
xdebug.profiler_enable=On
xdebug.profiler_output_dir="d:/wamp/php/debuginfo"
xdebug.idekey=PhpStorm
xdebug.remote_enable=on
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
3.phpstorm配置
客户端调试,打开phpStorm,进入File>Settings>PHP>Servers,这里要填写服务器端的相关信息,name填localhost,host填localhost,port填80,debugger选XDebug
进入File>Settings>PHP>Debug,看到XDebug选项卡,port填9000,其他默认
进入File>Settings>PHP>Debug>DBGp Proxy,IDE key 填 phpStorm,host 填localhost,port 填80
点OK退出设置。
4.浏览器设置
chrome有插件xdebug helper下载后,设置白名单为localhost也就是默认localhost,才显示小虫子的图标
5.启动断点:
在phpstorm中设置断点后,启动监听,就是电话一样的图标,然后用chrome浏览localhost中的指定断点的文件,会自动进入断点,在phpstorm中看到调试信息。
具体的细节还在学习中。
相关文章推荐
- PHP学习笔记【20】--PHP禁用缓存设置,自动刷新跳转
- PHP学习笔记四(PhpStorm调试 PHP Web 应用)
- php学习笔记-4.登录超时的设置
- php--xdebug设置 ---phpstorm 断点调试
- sqlserver -- 学习笔记(三)解决php连接sqlserver2005视图时显示“异类查询要求为连接设置 ANSI_NULLS 和 ANSI_WARNINGS 选项”的问题
- php学习笔记(09)—— 位运算与PHP错误报告设置
- 逆向工程核心原理学习笔记(四):检索API方法2-设置断点
- lr学习笔记--设置断点,单行、多行注释,集合点,录制时自动设置检查点
- php学习笔记(十九)mysqli扩展库的多语句查询、事物处理以及字符集设置
- php——学习笔记,phpstorm的快捷键
- PHP学习笔记【20】--PHP禁用缓存设置,自动刷新跳转
- PHP高级应用学习笔记之——利用header()函数设置浏览器缓存
- php学习笔记:文件的上传(包含设置文件的上传大小限制)
- php——学习笔记 设置背景和段落以及段落样式
- PHP7 学习笔记(八)JetBrains PhpStorm 2017.1 x64 MySQL数据库管理工具的使用
- 两千行PHP学习笔记
- PHP AES加密学习笔记
- php学习笔记总结
- PHP学习笔记【1】_基础