Closed Bug 337875 Opened 18 years ago Closed 18 years ago

set showInConsole to true for Firefox debug builds

Categories

(Firefox :: General, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED
Firefox 3 alpha1

People

(Reporter: Gavin, Assigned: Gavin)

References

Details

Attachments

(2 files, 2 obsolete files)

Splitting this off from bug 248528 which was originally about strict warnings.
Assignee: nobody → gavin.sharp
Status: NEW → ASSIGNED
Attachment #221936 - Flags: review?(benjamin)
Comment on attachment 221936 [details] [diff] [review]
set showInConsole to true for Firefox debug builds

It shouldn't be necessary to mess with -DDEBUG... why isn't that in DEFINES by default in debug builds?

We should only be defining DEBUG in debug builds (-DDEBUG= is wrong), and then using #ifdef DEBUG
Attachment #221936 - Flags: review?(benjamin) → review-
(In reply to comment #2)
> (From update of attachment 221936 [details] [diff] [review] [edit])
> It shouldn't be necessary to mess with -DDEBUG... why isn't that in DEFINES by
> default in debug builds?

I don't know. I assumed it was due to how the preprocessor was invoked for the prefs files. Just "#ifdef DEBUG" does not work (is always false). See also bug 248528 comment 14.
Attached patch Try this (obsolete) — Splinter Review
Attachment #222166 - Flags: review?(gavin.sharp)
Attachment #222166 - Attachment is obsolete: true
Attachment #222174 - Flags: review?(gavin.sharp)
Attachment #222166 - Flags: review?(gavin.sharp)
Attachment #222174 - Flags: review?(gavin.sharp) → review+
Attachment #222174 - Attachment description: Try this, rev. 2 → Try this, rev. 2 [fixed on trunk]
this works now
Attachment #221936 - Attachment is obsolete: true
Attachment #222302 - Flags: review?(benjamin)
This check in caused build failed to me.
I think the problem here is -DDEBUG_leon.sha.
There is a "." in my user name, that cause the problem.

________________________________________________________________________
gmake[1]: Entering directory `/export/home/leon.sha/uild/firefox/build0517/mozilla/netwerk/base/public'
if test ! -d ../../../dist/bin/greprefs; then /export/home/leon.sha/uild/firefox/build0517/mozilla/config/nsinstall -D ../../../dist/bin/greprefs; fi
set -e;   \
for i in ./security-prefs.js; \
do /usr/bin/perl ../../../config/preprocessor.pl  -DOSTYPE=\"SunOS5\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_XREMOTE=1 -DMOZ_X11=1 -DMOZ_DISTRIBUTION_ID=\"org.mozilla\" -DMOZ_ENABLE_XFT=1 -DMOZ_ENABLE_GNOMEUI=1 -DOJI=1 -DIBMBIDI=1 -DMOZ_VIEW_SOURCE=1 -DACCESSIBILITY=1 -DMOZ_XPINSTALL=1 -DMOZ_JSLOADER=1 -DNS_PRINTING=1 -DNS_PRINT_PREVIEW=1 -DMOZ_NO_XPCOM_OBSOLETE=1 -DMOZ_XTF=1 -DMOZ_MATHML=1 -DMOZ_ENABLE_CANVAS=1 -DMOZ_SVG=1 -DMOZ_UPDATE_CHANNEL=default -DMOZ_PLACES=1 -DMOZ_FEEDS=1 -DMOZ_STORAGE=1 -DMOZ_LOGGING=1 -DMOZ_USER_DIR=\".mozilla\" -DHAVE_STDINT_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_SYS_INT_TYPES_H=1 -DHAVE_UINT64_T=1 -DMOZ_XUL=1 -DMOZ_PROFILELOCKING=1 -DMOZ_MORKREADER=1 -DMOZ_DLL_SUFFIX=\".so\" -DXP_UNIX=1 -DUNIX_ASYNC_DNS=1 -DJS_THREADSAFE=1 -DMOZ_REFLOW_PERF=1 -DMOZ_REFLOW_PERF_DSP=1 -DMOZ_ACCESSIBILITY_ATK=1 -DMOZILLA_LOCALE_VERSION=\"1.9a1\" -DMOZILLA_REGION_VERSION=\"1.9a1\" -DMOZILLA_SKIN_VERSION=\"1.8\"  -DDEBUG -D_DEBUG -DDEBUG_leon.sha $i > ../../../dist/bin/greprefs/`basename $i`; \
done
../../../config/preprocessor.pl: invalid argument to -D: DEBUG_leon.sha
gmake[1]: *** [libs] Error 2
gmake[1]: Leaving directory `/export/home/leon.sha/uild/firefox/build0517/mozilla/netwerk/base/public'
gmake: *** [all] Error 2
(In reply to comment #7)
> This check in caused build failed to me.
> I think the problem here is -DDEBUG_leon.sha.
> There is a "." in my user name, that cause the problem.

I filed bug 338305 for this.
Whiteboard: [patch-r?]
Target Milestone: --- → Firefox 3 alpha1
Version: 2.0 Branch → Trunk
Attachment #222302 - Flags: review?(benjamin) → review+
Whiteboard: [patch-r?] → [checkin needed]
mozilla/browser/app/profile/firefox.js 	1.113
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Whiteboard: [checkin needed]
On my other machine I have a non-English Windows user name (even though I know it causes lots of problems). I believe this check in makes the build fail for me with

"not a valid variable name: 'DEBUG_Љолп'" from preprocessor.pl
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: