Browser debugging extensions
To start debugging, you first need to activate the debugger engine on the server. There are two ways to do this:
To set a special
GET/POST
orCOOKIE
parameter manually (for more information, refer to the Xdebug and Zend Debugger official documentation).To use a browser extension, which lets you enable the debugger with a single click.
The following table provides a non-exhaustive list of the available debugging extensions.
Chrome | Firefox | Internet Explorer | Microsoft Edge | |
---|---|---|---|---|
Xdebug | ||||
Zend Debugger | — |
Install the Xdebug helper extension for Chrome from the Chrome Web Store.
In PhpStorm, enable listening to incoming debug connections by either clicking
on the toolbar or selecting Run | Start Listening for PHP Debug Connections
Initiate connection from the browser side. Click the Xdebug Helper icon on the browser toolbar to initiate a debugging, profiling or tracing session:
As a rule, no further configuration is required. If necessary, you can explore additional settings by right-clicking the Xdebug Helper icon and choosing Options from the context menu.
Install Zend Debugger Toolbar.
In PhpStorm, enable listening to incoming debug connections by either clicking
on the toolbar or selecting Run | Start Listening for PHP Debug Connections
In the browser, click the Zend Debugger icon on the toolbar and select Settings. Make sure that Autodetect is selected, and the Broadcasting port value matches the value set for Settings broadcasting port on the PHP | Debug settings page CtrlAlt0S.
Initiate connection from the browser side. Click the Zend Debugger icon on the browser toolbar to initiate a debugging or profiling session:
Thanks for your feedback!