- Copy all phpinfo() output to this URL: https://xdebug.org/wizard.php
- Copy the file and follow the instrcution
- Add follow lines to the end of
php.ini
to make it work with PHPStorm
[XDEBUG]
zend_extension = C:\xampp\php\ext\php_xdebug-2.5.4-7.1-vc14.dll
xdebug.remote_enable = true
xdebug.idekey = PHPSTORM
xdebug.remote_connect_back = true
xdebug.remote_port = 9000
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 1
xdebug.profiler_output_dir = 'c:\xdebug' ---- create this directory----
- Add
?XDEBUG_PROFIL
or&XDEBUG_PROFIL
to the URL - It will generate a file in
c:\xdebug
directory - Open the file from previous step in PHPStorm from
tools => Analyse xdebug profile snapshot
- In PHPStorm from
run => web server debug validation => validate the web server
- Follow the exact link e.g.
127.0.0.1
orlocolhost
- Add this to end of URL
XDEBUG_SESSION_START=PHPSTORM
- Turn on listen for debugger connection - Icon like telephone on top right
- Hit the URL and it start the debug in PHPStorm