[development] Module proposal: Append ?XDEBUG_SESSION_START to allsite URLs

James Benstead jim at codeloom.net
Thu Jan 13 01:55:33 UTC 2011


Thanks for this: FF easy Xdebug works great with Firefox :)

On Tue, Jan 11, 2011 at 4:45 PM, Sohodojo Jim <salmons at sohodojo.com> wrote:

> James,
>
> While the mentioned bookmarketlets likely work, there are many widely
> available browser extensions for Xdebug, ZendDebugger, and the one I use,
> DBG that mitigate any need for such support in your site’s codebase.
>
> With an extension installed you simply click a button or other accessible
> means in-browser to append the session start/end strings. Most of these
> extensions include many features beyond session-tagging such as profiling
> on/off, and this-page/next-page/next-POST session start choices, etc.
>
> Here are a handful of such useful freebies (including the one I did for DBG
> for Chrome):
>
> * FF easy Xdebug: https://addons.mozilla.org/en-US/firefox/addon/58688/
> * FF vimxdebug: https://addons.mozilla.org/en-US/firefox/addon/181743/
> * FF DBGbar: https://addons.mozilla.org/en-US/firefox/addon/3227/
> * Chrome/Chromium Xdebug helper:
>
> https://chrome.google.com/extensions/detail/eadndfjplgieldjbigjakmdgkmoaaaoc
> * Chrome/Chromium DBG helper:
>
> https://chrome.google.com/extensions/detail/hfmakegkfgkoaeoligncjmnklkdmdjin
>
> I forked Xdebug helper to scratch my own itch for a DBG version. Zend
> provides similar extensions for their debugger for PDT/ZS. And any browser
> extensions not mentioned are mostly covered by the IDE developer/publisher
> providing such accessories directly such as for IE, etc.
>
> I can't remember and a quick search did not turn up what I used for Xdebug
> session handling under IE but I seem to recall that it was a
> bookmarklet-type solution rather than a packaged add-on.
>
> I am sure you will find the bookmarklet or easy Xdebug, Xdebug helper, or
> other extension all that you need.
>
>        --Sohodojo Jim--
>
> ==================
>
> From: development-bounces at drupal.org [mailto:
> development-bounces at drupal.org]
> On Behalf Of James Benstead
> Sent: Tuesday, January 11, 2011 7:44 AM
> To: development at drupal.org
> Subject: Re: [development] Module proposal: Append ?XDEBUG_SESSION_START to
> allsite URLs
>
> Sun, Richard: thanks - I'll use the bookmarklet :)
> On Tue, Jan 11, 2011 at 1:36 PM, Richard Burford
> <lists at freestylesystems.co.uk> wrote:
> Seriously, listen to sun. Don't create a whole new module on drupal.orgfor
> just this.
>
> I wrote a little bookmarklet for this purpose:
>
>
> javascript://%0Aif(document.URL.indexOf('XDEBUG_PROFILE')<1){var%20sep=docum
>
> ent.URL.indexOf('?');sep%20=%20(sep<1)?'?':'&';window.location.href=document
> .URL+sep+'XDEBUG_PROFILE';}
>
> Seems better than forcing it for all pages.
>
> psynaptic
> http://drupalcontrib.org/
>
> On 11 Jan 2011, at 13:29, James Benstead wrote:
>
>
> I agree, in the longer term, but as it stands I'm going to be writing the
> module for my own use anyway - I'd be more than happy to remove the module
> from d.o as and when the functionality was added to Devel.
> On Tue, Jan 11, 2011 at 1:27 PM, Daniel F. Kudwien <news at unleashedmind.com
> >
> wrote:
> Sounds like a patch for Devel module.  Would be insane to create an entire
> module for a checkbox and some URL query string additions.
>
> - sun
>
> ________________________________
>
>        From: development-bounces at drupal.org
> [mailto:development-bounces at drupal.org] On Behalf Of James Benstead
>        Sent: Tuesday, January 11, 2011 2:03 PM
>        To: development at drupal.org
>        Subject: [development] Module proposal: Append ?XDEBUG_SESSION_START
> to allsite URLs
>
>
>        It's possible to initiate remote XDEBUG debugging sessions by
> appending ?XDEBUG_SESSION_START to a Drupal URL, as per:
>
>        *
>
> http://robshouse.net/article/xdebug-komodo-and-acquia-drupal-stack-installer
>
>
>        Does anyone have any objections to a module that does this
> automatically, and provides a block with a tick box that would effectively
> turn debugging mode on or off? Or is there a module that already provides
> this functionality?
>
>
>
>
>


-- 

James Benstead
Development Director

www.codeloom.net
+44 (0) 7792 332558
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20110113/53127935/attachment.html 


More information about the development mailing list