[Dojo-interest] Debug Issues
schontz at gmail.com
Tue May 31 21:52:53 PDT 2005
Alright, so I went ahead and made dj_debug do a doc.write as a last
resort. I think that this may be a bit little dangerous, since
document.write can clobber a page, but it first attempts to append
something to the document, which shouldn't fail if there is a page. If
anyone has problems with that, please let me know!
On 5/31/05, Scott J. Miles <sjmiles at turbophp.com> wrote:
> Thanks for the info. I'll stay tuned.
> -----Original Message-----
> From: dojo-interest-bounces at dojotoolkit.org
> [mailto:dojo-interest-bounces at dojotoolkit.org] On Behalf Of David Schontzler
> Sent: Tuesday, May 31, 2005 8:13 PM
> To: dojo-interest at dojotoolkit.org
> Subject: Re: [Dojo-interest] Debug Issues
> On 5/31/05, Scott J. Miles <sjmiles at turbophp.com> wrote:
> > Two questions re: debug,
> > (1) In latest revision, when isDebug is true, I get a lot of informational
> > messages on my page in IE but not in FF. What is the intended behavior? If
> > possible, it would be nice if the messages could be appended rather than
> > prepended to my document.
> The problem there is that the debug statements are attempting to
> append to the body and it isn't available yet, so the debug statements
> get lost. I always changed the catch() to document.write it out, but I
> didn't know if it was safe enough to commit that. Maybe I'll do that
> > (2) The dojo.hostenv.loadModule API is wonderful: it manages lots of nasty
> > dependency issues. However, it also borks debugging (all errors are said
> > come from "line 536 on bootstrap1.js"). Is there a way I can include a
> > widget code-file directly without having to also manually insert all the
> > files it depends on?
> I tried to make something that'd do that, but I didn't have much luck
> the first go-round. I may try to do it again though. I'll keep you
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.322 / Virus Database: 267.3.2 - Release Date: 5/31/2005
> Dojo-interest mailing list
> Dojo-interest at dojotoolkit.org
More information about the Dojo-interest