The best manual of how to use "The easiest Xdebug" addon for Firefox
Installation notes
0. Install the best Firefox add-on for remote debugging The easiest Xdebug. I'm not lying.
1. Install the xdebug extension from PECL or from a repo or download sources to compile it manually:
- git clone git://github.com/derickr/xdebug.git
- Xdebug downloads page
2. Compile the extension
- cd /xdebug/src/path
- /path/to/your/phpize
- ./configure --prefix=/php/installation/prefix --enable-xdebug --with-php-config=/path/to/your/php-config
- make -j4
- sudo make install
4. Configure Xdebug in your php.ini
- zend_extension="/path/to/installed/extension/xdebug.so"
- xdebug.remote_enable=true
- xdebug.remote_host=127.0.0.1
- xdebug.remote_port=10000 (port 9000 is occupied by FPM, but you can set another)
- xdebug.remote_autostart=1
- xdebug.idekey= (you can just leave it empty)
3. Make sure Xdebug was installed successfully
- /path/to/your/php -i | grep xdebug
4. Don't forget to configure your fastcgi-server if you use one (example of nginx server config):
- fastcgi_param PHP_IDE_CONFIG serverName=$server_name;
5. Don't forget to reload your web-server or php-fpm.
IDE configuration
- Configure your xdebug port (10000 is our case)
- Filter external connections if you don't want to accept debug requests from aside
- Add server configuration of your site
- Go to Run->Edit configurations. Add "PHP Remote Debug"
configuration, select your server (that you just added) and enter
IDE-key, a string that will filter debug data by debug-session name:
Action!
- Select Run->Debug... and select your remote configuration name (as you named it above):
IDE now listens incoming connections on port 10000. (Hey, article writers, do you fucking know that IDE is a server here? Yes, xdebug sends data directly to IDE) - Confgure your addon in Firefox. Go to
Tools->Addons->Extensions->The easiest Xdebug and change your
IDE-key to selected one.
- Open the site page that you want to debug and click the "bug" icon on your Addon Bar. It will become colorized and animated.
This means that session name is set and after page reloading IDE will stop at your first breakpoint (in this manual you will not find what it is).
Also there is a usefull page for checking cookies that the add-on sets: http://manual.pohape.ru/xtest/
The best manual of how to use "The easiest Xdebug" addon for Firefox的更多相关文章
- python selenuim使用代理的方式
一.FireFox浏览器 myProxy = "60.195.250.55:80" proxy = Proxy({ 'proxyType': ProxyType.MANUAL, ' ...
- OWASP出品:Xenotix XSS漏洞测试框架及简单使用
OWASP Xenotix XSS Exploit Framework是一个高效的跨站脚本漏洞(XSS)检测和攻击测试框架.它通过特有的三大浏览器引擎(包括Trident, WebKit和Gecko) ...
- python应用:selenium之爬取天眼查信息
inform_table.py # -*-coding:utf8-*- from selenium import webdriver from selenium.webdriver.common.pr ...
- Mongodb 3.2 Manual阅读笔记:CH9 存储
9. 存储 9. 存储 9.1 存储引擎 9.1.1 WiredTiger存储引擎 9.1.1.1 文档级别并发 9.1.1.2 快照和检查点 9.1.1.3 Journaling 9.1.1.4 压 ...
- OpenCASCADE6.8.0 Reference Manual Serach Problem
OpenCASCADE6.8.0 Reference Manual Serach Problem eryar@163.com 1. Problem 有网友反映OpenCASCADE6.8.0的Refe ...
- [MySQL Reference Manual]14 InnoDB存储引擎
14 InnoDB存储引擎 14 InnoDB存储引擎 14.1 InnoDB说明 14.1.1 InnoDB作为默认存储引擎 14.1.1.1 存储引擎的趋势 14.1.1.2 InnoDB变成默认 ...
- Manual——Test (翻译1)
LTE Manual ——Logging(翻译) (本文为个人学习笔记,如有不当的地方,欢迎指正!) 1.17.3 Testing framework(测试框架) ns-3 包含一个仿真核心引擎. ...
- LTE Manual ——Logging(翻译)
LTE Manual ——Logging(翻译) (本文为个人学习笔记,如有不当的地方,欢迎指正!) 9 Logging ns-3 日志功能可以用于监测或调试仿真程序的进展.日志输出可以通过 ma ...
- ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'type=InnoDB' at line 7
问题: 使用hibernate4.1.1,数据库使用mysql5.1.30,使用hibernate自动生成数据库表时,hibernate方言使用org.hibernate.dialect.MySQLI ...
随机推荐
- js算法初窥07(算法复杂度)
算法复杂度是我们来衡量一个算法执行效率的一个度量标准,算法复杂度通常主要有时间复杂度和空间复杂度两种.时间复杂度就是指算法代码在运行最终得到我们想要的结果时所消耗的时间,而空间复杂度则是指算法中用来存 ...
- 上海市2019年公务员录用考试笔试合格人员笔试成绩(A类)
考试类别:A类 注册编号 总成绩 注册编号 总成绩 注册编号 总成绩 注册编号 总成绩 4016574 127.4 5112479 145.9 5125732 124.3 5141074 159.9 ...
- pyquery 库的方法
初始化 在这里介绍四种初始化方式. (1)直接字符串 from pyquery import PyQuery as pq doc = pq("<html></html> ...
- JS导出gridview到excel
<html> <head> <script type="text/javascript"> var tableToExcel = (functi ...
- 10个非常有趣的Linux命令【转载】
Linux当中有很多比较有趣的命令,可以动手看看,很简单的. 1.rev命令 一行接一行地颠倒所输入的字符串. 运行: $rev 如输入:shiyanlou shiyanlou rev.jpg 2.a ...
- Spring使用笔记(三) 高级装配
高级装配 一.环境与Profile 一)配置profile bean 环境的改变导致配置改变(需求:通过环境决定使用哪个bean),可以通过Spring的Profile解决. Profile可以在程序 ...
- Shell脚本笔记(四)条件判断
条件判断 一.条件测试与比较 一)条件测试基础语法 下列测试语法中如果测试的表达式成立,条件测试就会结束,并返回0. 1.test条件测试 语法:test <测试表达式> 2.中括号条件 ...
- Class "xxxxx"defined without specifying a base class
解决方法: 导入#import xxxx.h即可 程序需要了解整个类.所以需要添加 #import xxxx.h
- fatal: You are not currently on a branch. 问题解决
fatal: You are not currently on a branch. 解决 注:亲试,这种方法会把本地的修改给冲掉,所以事先一定要备份下文档,之后覆盖,重新上传或pull即可:解决方法: ...
- numpy快速入门
numpy快速入门 numpy是python的科学计算的核心库,很多更高层次的库都基于numpy.博主不太喜欢重量级的MATLAB,于是用numpy进行科学计算成为了不二选择. 本文主要参考Scipy ...