PDA

View Full Version : XDebug Profiler Bookmarklet



petsagouris
07-28-2010, 06:35 PM
The following is not related to HotaruCMS.

For those of you that are developing PHP code and use Xdebug.
Using the xdebug.profiler_enable by default can create lots of files that you usually don't want/need.

You can turn off the xdebug.profiler_enable and turn on the xdebug.profiler_enable_trigger.
Then use the XDEBUG_PROFILE trigger in the URL as a GET parameter.
Use the following as a bookmarklet to make use of this quick and easy.


javascript:if(document.URL.indexOf('XDEBUG_PROFILE ')<1){window.location.href=document.URL+((document.UR L.indexOf('?')<1)?'?':'&')+'XDEBUG_PROFILE';}