I assume that, we have already configured xdebugger(http://www.xdebug.org/docs/install). After add xdebugger you follow this instruction to configure debugger with phpstorm
1. Add easy-xdebug addons for your firefox browser by following link
https://addons.mozilla.org/en-US/firefox/addon/easy-xdebug/
Or you can add addons for google chrome browser by using the following link:
https://chrome.google.com/webstore/detail/xdebug-helper /eadndfjplgieldjbigjakmdgkmoaaaoc/related?hl=en
2. Then go phpstorm IDE and set DBGp Proxy by going
settings->PHP->Debug->DBGP
and set the properties of
IDE key: PHPSTORM
Host: localhost
Port: 9000
3. Now we need to set some xdebug config to php.ini file. Open php.ini file by following
sudo gedit /etc/php5/apache2/php.ini
command and then paste the bellow config:
xdebug.remote_connect_back = 1
xdebug.remote_enable = 1
xdebug.remote_handler = dbgp
xdebug.remote_mode = req
xdebug.remote_port = 9000
xdebug.remote_host=127.0.0.1
xdebug.remote_autostart=1
xdebug.idekey='PHPSTORM'
4. Then put your debug point in php file, set listner by click tools listner symbol and go to browser.
5. In Browser enable addons-bar from view->toolbar->addons->easy-xdebug and click to initiate easy-xdebug session.
Or, For google chrome addons, simply press ctrl+shift+X and activate the browser session listener.
6. Then enter your url and enjoy the debugging.
Happy Debugging For php script :)
1. Add easy-xdebug addons for your firefox browser by following link
https://addons.mozilla.org/en-US/firefox/addon/easy-xdebug/
Or you can add addons for google chrome browser by using the following link:
https://chrome.google.com/webstore/detail/xdebug-helper /eadndfjplgieldjbigjakmdgkmoaaaoc/related?hl=en
2. Then go phpstorm IDE and set DBGp Proxy by going
settings->PHP->Debug->DBGP
and set the properties of
IDE key: PHPSTORM
Host: localhost
Port: 9000
3. Now we need to set some xdebug config to php.ini file. Open php.ini file by following
sudo gedit /etc/php5/apache2/php.ini
command and then paste the bellow config:
xdebug.remote_connect_back = 1
xdebug.remote_enable = 1
xdebug.remote_handler = dbgp
xdebug.remote_mode = req
xdebug.remote_port = 9000
xdebug.remote_host=127.0.0.1
xdebug.remote_autostart=1
xdebug.idekey='PHPSTORM'
4. Then put your debug point in php file, set listner by click tools listner symbol and go to browser.
5. In Browser enable addons-bar from view->toolbar->addons->easy-xdebug and click to initiate easy-xdebug session.
Or, For google chrome addons, simply press ctrl+shift+X and activate the browser session listener.
6. Then enter your url and enjoy the debugging.
Happy Debugging For php script :)
No comments:
Post a Comment