Last modified: 2011-05-25 23:35:57 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T31140, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29140 - Consider supporting FirePHP for easy ajax debugging
Consider supporting FirePHP for easy ajax debugging
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Brion Vibber
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-05-25 18:04 UTC by Michael Dale
Modified: 2011-05-25 23:35 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Michael Dale 2011-05-25 18:04:39 UTC
When working on the UploadWizard and ResumableUpload extension, I often want to monitor both the php debug lines in addition to the php xhr result. It might be interesting to consider something like FirePHP that would let us send php debug information to the browser without cluttering the response. Maybe a simple off by default configuration option to have our debug classes output to firePHP headers instead of to local temporary files?
Comment 1 Sam Reed (reedy) 2011-05-25 18:20:58 UTC
Installing xdebug and using 3rd party IDEs requires no mediawiki side debugging, just modules installing onto the running php config and reloading the webserver
Comment 2 Michael Dale 2011-05-25 18:31:00 UTC
yes xdebug lets you see the debug requests in a debugger outside of the browser, the bug was about firebug integration with the firephp add-on in the browser. Makes it a little easier to keep track of where things went wrong when the debug information is matched up per your many ajax requests automatically. 

But this is obviously a low priority bug, since you can practically do the same thing with the tool set you describe or just tail a temporary file that wfDebug outputs. ( Its just less convenient and you have to manually sync up the several ajax requests with your javascript debugging lines )
Comment 3 Brion Vibber 2011-05-25 22:02:06 UTC
Added FirePHP extension in r88843; had to add a 'Debug' hook from wfDebug & wfDebugLog() to handle it.

Note that a few messages at top or bottom don't get output due to being too early for extension initialization or too late for HTTP headers.
Comment 4 Michael Dale 2011-05-25 23:35:57 UTC
sweet! Thanks Brion, I bet this will be helpful for ajax RTE efforts too ;)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links