1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XDebug Profiler Bookmarklet

Discussion in 'Bookmarking Discussions and More' started by petsagouris, Jul 28, 2010.

  1. petsagouris

    petsagouris Design & Development

    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.

    Code:
    javascript:if(document.URL.indexOf('XDEBUG_PROFILE')<1){window.location.href=document.URL+((document.URL.indexOf('?')<1)?'?':'&')+'XDEBUG_PROFILE';}
     
    Last edited: Jul 28, 2010

Share This Page