Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#664 closed enhancement (wontfix)

dojo.debug enhancements

Reported by: [email protected] Owned by: jkuhnert
Priority: high Milestone:
Component: Core Version: 0.2
Keywords: Cc:
Blocked By: Blocking:


I think I've suggested (but not implemented ) similar functionality before, but this time I've got a few more ideas to spin into it:

  • Add - Though I know we're supposed to be ~reducing~ the size of dojo builds, I think this feature in combination with the next one will reduce the compressed dojo size even more than now to make up for it. The idea behind these functions would be to refactor the current dojo.debug somewhat to take in additional params to handle the "type" of statement. (ie debug/info/warn/error) An appropriate div(globally initialised and setup for efficiency) element will be used to wrap the statement output with a style class + keyword appended before the statement. (So the end result might be <div class="warn">WARN This is a dojo.warn statement</div> )
  • Add ability to strip out various kinds of debug statements in the dojo package builder. The default could be something along the lines of "strip out all debug/info statements". So....One scenerio might be that the default built dojo.js has almost all statements stripped out, while the dojo.uncompressed.js has them all in with their default values.

I definitely intend on doing this myself, but want some sort of general approval before wasting time on unwanted features.

Change History (3)

comment:1 Changed 16 years ago by dylan

Owner: changed from anonymous to jkuhnert

comment:2 Changed 16 years ago by jkuhnert

Resolution: wontfix
Status: newclosed

I believe the "wants" in here are being covered by the new jslinker toolset being added in by James Burke.

comment:3 Changed 15 years ago by (none)

Milestone: 0.4

Milestone 0.4 deleted

Note: See TracTickets for help on using tickets.