Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#11268 closed enhancement (wontfix)

Enable Firebug Lite for Mobile Safari

Reported by: Thomas Bachem Owned by: Mike Wilcox
Priority: high Milestone: tbd
Component: General Version: 1.5.0b2
Keywords: Cc:
Blocked By: Blocking:

Description

The console of Mobile Safari on iPhone, iPad etc. is very basic and doesn't dump variables etc., so Firebug Lite should be enabled by default in debug mode on Mobile Safari.

Currently these lines decide when to use Firebug Lite:

if(
   !dojo.isFF &&                                          // Firefox has Firebug
   (!dojo.isChrome || dojo.isChrome < 3) &&
   (!dojo.isSafari || dojo.isSafari < 4) &&               // Safari 4 has a console
   !isNewIE &&                                            // Has the new IE console
   !window.firebug &&                                     // Testing for mozilla firebug lite
   (typeof console != "undefined" && !console.firebug) && //A console that is not firebug's
   !dojo.config.useCustomLogger &&                        // Allow custom loggers
   !dojo.isAIR                                            // isDebug triggers AIRInsector, not Firebug
){

Alternatively, it would be nice to have a djConfig setting to force the use of Firebug Lite.

Change History (3)

comment:1 Changed 9 years ago by Adam Peller

Owner: changed from anonymous to Mike Wilcox

comment:2 Changed 9 years ago by Mike Wilcox

Resolution: wontfix
Status: newclosed

Sorry, I don't believe this is a good idea.

iPhone does already have a debugger, but you know that. To those who don't: http://browsers.about.com/od/allaboutwebbrowsers/ss/iphonedebugger_7.htm http://developer.apple.com/safari/library/codinghowtos/Mobile/Tools/index.html

There was a forceFirebug in the code, but it was criticized heavily and so I took it out. And according to peller, dojo firebug lite is deprecated as the Mozilla guys are concerned about this fork. Besides, to me it seems to be little more than an IE6 logger.

There is the option of Mozilla's Firebug - or I suggest you edit your local copy of dojo firebug.

comment:3 Changed 9 years ago by Thomas Bachem

Thanks for feedback and clarification! I don't get why a "forceFirebug" option is bad in any way, but I guess the critics had there reasons :).

We'll just keep our dojo firebug patched so far and see what the future brings.

Note: See TracTickets for help on using tickets.