Commit Graph

7 Commits

Author SHA1 Message Date
22fa6e4c63 Bug 355195: only enable debug.js assertions in non-release builds (based on the app update channel pref), r=mconnor 2007-07-23 19:48:54 -07:00
martijn.martijn@gmail.com
495975c872 Bug 343165 - Make debug.js appear everywhere, patch by Dave Townsend (Mossop), r=mconnor 2006-07-19 12:06:54 +00:00
gavin@gavinsharp.com
e83354b025 Remove XXX comment and change from bug 330853, because it was unnecessary, r=ben 2006-04-28 22:55:03 +00:00
gavin@gavinsharp.com
d97d2e2cfb Bug 335319: pre-process out debug.js' license header, r=jhughes, sr=ben 2006-04-28 22:29:06 +00:00
beng@bengoodger.com
2a425f5770 330853 - build does not start for some users... paper over multiple includes of debug.js by using a var instead of a const for now. r=brettw .. this probably wants to be fixed a different way, but trying to un-break people. 2006-03-17 21:38:21 +00:00
joe@retrovirus.com
721c60fad8 Fixed a scope-o in the NS_ASSERT() function.
bug=327349
r=gavin.sharp@gmail.com
2006-03-14 02:30:00 +00:00
joe@retrovirus.com
b1ecd5619d Moved Ben's JavaScript ASSERT function to be NS_ASSERT in
toolkit/content/debug.js

debug.js is now included by globalOverlay.js, but if that's not in your
scope you can just #include debug.js directly.

NS_ASSERT() shows a dialog box containing a stack trace when it's called
with a condition that isn't true.  The dialog box will be suppressed in
final builds, but in nightlies and alphas, it's useful for encouraging
bug submissions.  To disable the dialogs, set XUL_ASSERT_PROMPT=0 in
your environment.

bug=327349
r=darin@meer.net, gavin.sharp@gmail.com
2006-03-14 01:56:09 +00:00