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, php7Build xdebug for your system
At the moment I wrote this post i have to build xdebug 2.4.x- Download php_xdebug-2.4.1-7.0-vc14-nts-x86_64.dll
- Move the downloaded file to "C:\Program Files\PHP\v7.0\ext"
- Edit
C:\Program Files\PHP\v7.0\php.ini
and add the linezend_extension = "C:\Program Files\PHP\v7.0\ext\php_xdebug-2.4.1-7.0-vc14-nts-x86_64.dll
xdebug.remote_enable=truexdebug.remote_host=127.0.0.1xdebug.remote_port=9000xdebug.remote_handler=dbgpxdebug.profiler_enable=1xdebug.idekey=PHPSTORM " - 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:
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