[TYPO3-core] Debugging TYPO3 CMS in your IDE

Jigal van Hemert jigal.van.hemert at typo3.org
Tue Apr 23 15:31:51 CEST 2013


Hi,

A quick tip to make debugging easy.

There is a Firefox add-on "easy Xdebug" which adds a button to the 
bottom add-on bar to start a debugging session.
The instructions in the add-on repository (or on the authors homepage) 
are what you need to configure PHP to work with this extension.
Do set an IDE key in php.ini in the xdebug section.
Restart Apache to start using the new settings.

In PhpStorm in the Run menu, choose Edit configurations. Then Defaults 
-> PHP Remote Debug.
Configure the server (in my case: localhost, port 80, debugger Xdebug) 
and enter the Ide key (session id) which you set in php.ini.

Now it's a matter of "Start Listen PHP Debug Connections" in PhpStorm 
(in the Run menu or with the toolbar button) and in Firefox use the 
"Start xdebug session" button on the bottom.

With each action in the TYPO3 backend (also triggered via JS!) PhpStorm 
kicks in as debugger and you step through the code. It even works with 
XAMPP for Windows!

-- 
Jigal van Hemert
TYPO3 CMS Core Team member

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the TYPO3-team-core mailing list