The best Manual of "the easiest Xdebug" addon for Firefox

Source: Internet
Author: User
Tags nginx server

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 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)
    • 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's just added) and enter Ide-key, a string that would filte R 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 this 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, want to debug and click the ' Bug ' icon on your Addon Bar. It'll become colorized and animated. This means the session name is the set and after page reloading IDE would stop at your first breakpoint (in this manual yo U'll isn't find what it's is).

      Also There is a usefull page for checking cookie that the add-on sets:http://manual.pohape.ru/xtest/
Reference: http://manual.pohape.ru/xdebug/

The best Manual of "the easiest Xdebug" addon for Firefox

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.