Recently we had xdebug installed in our development machine. To enable xdebug profiling we must must add XDEBUG_PROFILER=1 via GET or POST. Because I am lazy like many programmers I wrote bookmarklet to add this for me 🙂 Here is my code
//... javascript:var href=window.location.href;if(href.indexOf('XDEBUG_PROFILE')!=-1){window.location.reload()}else{if(href.indexOf('?')!=-1){window.location.href=href+'&XDEBUG_PROFILE=1'}else{window.location.href=href+'?XDEBUG_PROFILE=1'}} //..
Install notes:
Firefox: Create new bookmark and paste code (remove comments) to “Loaction” field and save it.
Pingback: Toggle XDebug Bookmarklet - Barren, Frozen Wasteland