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:

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/

时间: 2024-08-10 21:20:52

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

git manual

git(1) p,li,dt,dd,div,pre,h1,h2,h3,h4,h5,h6 { } body { margin: 1em 5% 1em 5% } a { color: blue; text-decoration: underline } a:visited { color: fuchsia } em { font-style: italic; color: navy } strong { font-weight: bold; color: #083194 } tt { color:

YASM User Manual

This document is the user manual for the Yasm assembler. It is intended as both an introduction and a general-purpose reference for all Yasm users. 1.?Introduction Yasm is a BSD-licensed assembler that is designed from the ground up to allow for mult

[MySQL Reference Manual] 7 备份和恢复

7. 备份和恢复 本章主要会介绍: 1.备份的类型:逻辑备份,物理备份,全备和增量4种 2.创建备份的方法 3.还原方法,包括还原到时间点 4.备份计划,压缩和加密 5.表维护,恢复损坏的表 7. 备份和恢复... 1 7.1备份和还原类型... 1 7.1.1 物理备份VS逻辑备份... 1 7.1.2 Online VS OFFLINE. 1 7.1.3 本地VS远程... 1 7.1.4 快照备份... 1 7.1.5 全备VS增量备份... 1 7.1.6 完全恢复VS时间点(增量)恢复

MySQLSyntaxErrorException: 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 ...

下面是我update数据库时打印出来的异常: ### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nea

P6 EPPM Manual Installation Guide (Oracle Database)

Contents Oracle Database Manual Configuration Overview ,,★★5 Oracle Database Installation ,,★★6 Creating the Database Structure for Oracle and Loading Application Data ,,★★7 Creating the P6 EPPM Database Structure for Oracle ,,★★7 Copying the Script

《The One Page Linux Manual》的中文版

对于初学者来说,Linux等开源技术的学习曲线比较"陡".美国新泽西州立大学(The State University of New Jersey)的老师为了方便Linux入门课程讲授,将最常用的命令总结了一下,撰写一个<The One Page Linux Manual>. 下载:http://www.cs.rutgers.edu/resources/howto/One_Page_Linux_Manual.pdf 此文档简单易用,一目了然.初学者将此文档正反打印到一页A4

Linux User&#39;s Manual IOSTAT

IOSTAT(1) Linux User's Manual IOSTAT(1) NAME iostat - Report Central Processing Unit (CPU) statistics and input/out- put statistics for devices, partitions and network filesystems (NFS). SYNOPSIS iostat [ -c ] [ -d ] [ -N ] [ -n ] [ -h ] [ -k | -m ]

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version

1.错误描述 org.hibernate.exception.SQLGrammarException: error executing work at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:80) at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(

Manual close is not allowed over a Spring managed SqlSession

Manual close is not allowed over a Spring managed SqlSession 整合spring与MyBatis时出现如下警告: [org.springframework.beans.factory.support.DisposableBeanAdapter.invokeCustomDestroyMethod(DisposableBeanAdapter.java:360)]-[WARN] Invocation of destroy method 'clo