Closed Bug 131805 Opened 23 years ago Closed 23 years ago

can't debug when running an opt mozila build!

Categories

(SeaMonkey :: UI Design, defect, P1)

Other
Windows 2000
defect

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.0

People

(Reporter: dougt, Assigned: dougt)

References

Details

(Keywords: topembed+)

Attachments

(1 file, 1 obsolete file)

Okay this totally sucks. I am running 0.99 and I cant debug a trunk build. This DDE stuff has to be optional based on some env.
Attached patch patch v.1 (obsolete) — Splinter Review
set MOZ_NO_DDE_SERVER before you run mozilla and the run will ignore the DDE server.
Comment on attachment 74789 [details] [diff] [review] patch v.1 r=darin (thank you!)
Attachment #74789 - Flags: review+
What exactly do you want this to do? The patch not only turns off the "dde server" but it also blocks creation of the MessageWindow, which maybe you didn't intend. Anyways, provided you're happy with that restriction, then I'd just suggest changing the env variable name to something more generic, like "MOZ_RUN_STANDALONE" or some such. "MOZ_NO_DDE_SERVER" would seem to me to apply just to the "this->StartDDE();" line slightly further down. You're not so much disabling the DDE server as you are ignoring an already running instance of Mozilla (i.e., an already existing MessageWindow, which I think is implementation detail to most folks).
I didn't want the var name generic, or at least I wanted it windows specific.
But my point is that you don't give a flip about the DDE server. We don't use DDE to communicate between new instances of mozilla.exe and already running ones, so it seems odd to name the environment variable "MOZ_NO_DDE_SERVER." Isn't this Windows-centric enough already (it is only used in this one win32-only module)?
MOZ_NO_DDE ?
Hmmm, seems I'm having trouble making myself understood. Let me try again. There is only 1 line of code that has *anything* to do with DDE. That's the call to StartDDE(). If we just up and remove that call, you still have your problem (starting a second Mozilla just sends a message to the first). If we move that call ahead of your check for MOZ_NO_DDE_SERVER, then you'd still get what you want when you specify MOZ_NO_DDE_SERVER. Ergo, the problem has *nothing* to do with DDE. It isn't a DDE issue. It's a *message window* issue. Now your patch happens to turn off the DDE server when it detects MOZ_NO_DDE_SERVER, but that's just coincidence. It also turns off the -turbo mode systray icon. But there's no way we'd name the environment variable "MOZ_NO_SYSTRAY_ICON." I'm just saying we shouldn't name it MOZ_NO_DDE_SERVER, either, for the same reason.
darin, dan, any name suggestions?
i defer to law, conrad (or anyone else)... i'm out of my element here ;-)
Severity: normal → blocker
Priority: -- → P1
Hardware: PC → Other
Target Milestone: --- → mozilla1.0
MOZ_NO_REMOTE <- similar to xremote
That's fine. No normal user would likely make the connnection, but it's not for them anyway.
Attached patch patch v.2Splinter Review
changes the name of the env var.
Attachment #74789 - Attachment is obsolete: true
Comment on attachment 75655 [details] [diff] [review] patch v.2 carrying forward r= from darin.
Attachment #75655 - Flags: review+
per dougt this helps for a lot of other topembed bugs. So a plus.
Keywords: topembedtopembed+
Comment on attachment 75655 [details] [diff] [review] patch v.2 sr=alecf
Attachment #75655 - Flags: superreview+
Comment on attachment 75655 [details] [diff] [review] patch v.2 a=asa (on behalf of drivers) for checkin to the 1.0 trunk
Attachment #75655 - Flags: approval+
Checking in nsNativeAppSupportWin.cpp; /cvsroot/mozilla/xpfe/bootstrap/nsNativeAppSupportWin.cpp,v <-- nsNativeAppSupportWin.cpp new revision: 1.63; previous revision: 1.62 done
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
*** Bug 40109 has been marked as a duplicate of this bug. ***
*** Bug 191734 has been marked as a duplicate of this bug. ***
Product: Core → Mozilla Application Suite
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: