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:

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/
参考:http://manual.pohape.ru/xdebug/

The best manual of how to use "The easiest Xdebug" addon for Firefox的更多相关文章

  1. python selenuim使用代理的方式

    一.FireFox浏览器 myProxy = "60.195.250.55:80" proxy = Proxy({ 'proxyType': ProxyType.MANUAL, ' ...

  2. OWASP出品:Xenotix XSS漏洞测试框架及简单使用

    OWASP Xenotix XSS Exploit Framework是一个高效的跨站脚本漏洞(XSS)检测和攻击测试框架.它通过特有的三大浏览器引擎(包括Trident, WebKit和Gecko) ...

  3. python应用:selenium之爬取天眼查信息

    inform_table.py # -*-coding:utf8-*- from selenium import webdriver from selenium.webdriver.common.pr ...

  4. 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 压 ...

  5. OpenCASCADE6.8.0 Reference Manual Serach Problem

    OpenCASCADE6.8.0 Reference Manual Serach Problem eryar@163.com 1. Problem 有网友反映OpenCASCADE6.8.0的Refe ...

  6. [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变成默认 ...

  7. Manual——Test (翻译1)

    LTE Manual ——Logging(翻译) (本文为个人学习笔记,如有不当的地方,欢迎指正!) 1.17.3 Testing framework(测试框架)   ns-3 包含一个仿真核心引擎. ...

  8. LTE Manual ——Logging(翻译)

    LTE Manual ——Logging(翻译) (本文为个人学习笔记,如有不当的地方,欢迎指正!) 9 Logging   ns-3 日志功能可以用于监测或调试仿真程序的进展.日志输出可以通过 ma ...

  9. 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 ...

随机推荐

  1. RFC2616-HTTP1.1-Methods(方法规定部分—单词注释版)

    part of Hypertext Transfer Protocol -- HTTP/1.1RFC 2616 Fielding, et al. 9 Method Definitions The se ...

  2. staff

    staff英 [stɑ:f] 四大服. 美 [stæf] n.参谋;全体职员;管理人员;权杖adj.职员的;行政工作的;参谋的;作为正式工作人员的v.在…工作;为…配备职员;任职于第三人称单数: st ...

  3. 几个比较很重要的Shader相关教程

    1. 论坛上有个兄弟写个的ToonShaderModel,可以参考ShaderModelhttps://github.com/EpicGames/UnrealEngine/pull/1552/file ...

  4. jquery 1.7.2源码解析(二)构造jquery对象

    构造jquery对象 jQuery对象是一个类数组对象. 一)构造函数jQuery() 构造函数的7种用法: 1.jQuery(selector [, context ]) 传入字符串参数:检查该字符 ...

  5. 潭州课堂25班:Ph201805201 django 项目 第三十一课 在线课堂视频点播的实现(课堂笔记)

    在线课堂 一.数据库模型设计 # 在apps/course/models.py中定义如下模型: from django.db import models from utils.models impor ...

  6. [CQOI2005]三角形面积并

    [CQOI2005]三角形面积并 题目大意: 求\(n(n\le100)\)个三角形的面积并. 思路: 自适应辛普森法,玄学卡精度可过. 源代码: #include<cmath> #inc ...

  7. BZOJ4962 : 简单的字符串

    枚举子串的中心,往两侧扩展,将两侧对应位置的字符交替写下来,得到一个字符串$S$. 若前后长度为$L$的子串循环同构,则在$S$中它们对应长度为$2L$的前缀,需要满足它可以由不超过$2$个偶回文串拼 ...

  8. [Codeforces113C]Double Happiness(数论)

    题意 给定闭区间[l,r] [l,r] [l,r],找出区间内满足t=a2+b2 t=a^{2}+b^{2} t=a2+b2的所有素数t t t的个数( a,b a,b a,b为任意正整数). 思路 ...

  9. 函数(二):input、raw_input、lambda、repr、map、filter、reduce、eval、exec、range、xrange

    一.input()和raw_input(): input()支持用户输入数字或表达式,按类型存或存表达式的计算结果 raw_input():输入所有内容当成字符串存 二.lambda函数:匿名函数 l ...

  10. java第二周的学习知识4(对原码,补码,反码和java中浮点数计算不准确的总结)

    原码:一个正数,转换为二进制位就是这个正数的原码.负数的绝对值转换成二进制位然后在高位补1就是这个负数的原码. 但是原码有几个缺点,零分两种 +0 和 -0 .很奇怪是吧!还有,在进行不同符号的加法运 ...