Dieses Blog durchsuchen

Montag, 15. August 2016

Xdebug: install on windows with PHP 7


Part I Installation of Xdebug

To prepare the usage of xdebug for php in phpstorm, for using a much better debugworkflow then var_dump or Zend_Debug::dump(),  we have to build and install the php extension.

Prerequisits

Installed IIS or apache, php7

Build xdebug for your system

At the moment I wrote this post i have to build xdebug 2.4.x

  1. Download php_xdebug-2.4.1-7.0-vc14-nts-x86_64.dll
  2. Move the downloaded file to "C:\Program Files\PHP\v7.0\ext"
  3. Edit C:\Program Files\PHP\v7.0\php.ini and add the line
    zend_extension = "C:\Program Files\PHP\v7.0\ext\php_xdebug-2.4.1-7.0-vc14-nts-x86_64.dll 
    xdebug.remote_enable=true
    xdebug.remote_host=127.0.0.1
    xdebug.remote_port=9000
    xdebug.remote_handler=dbgp
    xdebug.profiler_enable=1
    xdebug.idekey=PHPSTORM "
  4. Restart the webserver


Thats pretty much it. At last, we want to check the build and the installation

Check the installation


Create a info.php

add following line to the info.php
<?php phpinfo();

- open a phpinfo.php in your browser and copy the whole html content.
- visit https://xdebug.org/wizard.php  and paste the content into the textarea there.

on the follwing screen you should see a message like that:






  • Xdebug installed: 2.4.1
  • Server API: CGI/FastCGI
  • Windows: yes - Compiler: MS VC14 - Architecture: x64
  • Zend Server: no
  • PHP Version: 7.0.9
  • Zend API nr: 320151012
  • PHP API nr: 20151012
  • Debug Build: no
  • Thread Safe Build: no
  • Configuration File Path: C:\Windows
  • Configuration File: C:\Program Files\PHP\v7.0\php.ini
  • Extensions directory: C:\Program Files\PHP\v7.0\ext

  • You're already running the latest Xdebug version

     
    Klick this link , if you want to use xdebug in a debugsession 


    Thanks

    Peter

    Keine Kommentare:

    Kommentar veröffentlichen