Opened 13 years ago

Closed 13 years ago

Last modified 10 years ago

#905 closed enhancement (fixed)

[patch][cla] use FireBug's console.log more effectively

Reported by: cameron@… Owned by: Dustin Machi
Priority: high Milestone:
Component: General Version: 0.3
Keywords: Cc: dmachi@…
Blocked By: Blocking:

Description

FireBug? provides the console.log function. When called directly with an object refrence, firebug creates a link to the object inspector which is very handy.

This patch does this :

  • maps dojo.debug (and dojo.debugDeep) to console.log directly, so that objects are passed instead of strings (to enable object inspector links)
  • maps dojo.shallowDebug to multiple console.log statements for
    • for objects : shows the top level of propeties (with inspector links for objects)
    • for arrays : shows each item in the array (with inspector links for objects)

Attachments (3)

FireBug.js.patch (1.3 KB) - added by cameron@… 13 years ago.
test_debug_Firebug.html (1.1 KB) - added by cameron@… 13 years ago.
test file for FireBug?
dojo.js.patch (528 bytes) - added by cameron@… 13 years ago.
modified trunk/dojo.js (the bootstrapper) to enable FireBug? if it is availible

Download all attachments as: .zip

Change History (8)

Changed 13 years ago by cameron@…

Attachment: FireBug.js.patch added

Changed 13 years ago by cameron@…

Attachment: test_debug_Firebug.html added

test file for FireBug?

Changed 13 years ago by cameron@…

Attachment: dojo.js.patch added

modified trunk/dojo.js (the bootstrapper) to enable FireBug? if it is availible

comment:1 Changed 13 years ago by bill

Cc: dmachi@… added
Owner: changed from anonymous to Dustin Machi

Dustin, you wrote the Firebug code right (I mean, the dojo code to connect to Firebug)? So can you do this patch?

comment:2 Changed 13 years ago by dylan

Milestone: 0.4

comment:3 Changed 13 years ago by dylan

Summary: Patch to use FireBug's console.log more effectively[patch][cla] use FireBug's console.log more effectively

comment:4 Changed 13 years ago by Dustin Machi

Resolution: fixed
Status: newclosed

Fixed in #5781

comment:5 Changed 12 years ago by (none)

Milestone: 0.4

Milestone 0.4 deleted

Note: See TracTickets for help on using tickets.