Results 1 to 1 of 1

Thread: XDebug Profiler Bookmarklet

  1. #1
    Design & Development petsagouris's Avatar
    Join Date
    Jul 2010
    Location
    Rethymno, Greece
    Posts
    314
    Blog Entries
    2
    Thanks
    54
    Thanked 137 Times in 102 Posts

    Default XDebug Profiler Bookmarklet

    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 by petsagouris; 07-28-2010 at 06:37 PM. Reason: formatting

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Bookmarklet 0.2
    By Nick in forum Plugin Downloads
    Replies: 16
    Last Post: 03-21-2012, 12:13 AM
  2. Is there a Bookmarklet?
    By anika039 in forum How-To and Troubleshooting
    Replies: 3
    Last Post: 07-18-2010, 10:38 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •