Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Issue 311413003: Add a win_force_console=1 GYP flag that makes chrome.exe and nacl64.exe console applications (Closed)

Created:
6 years, 6 months ago by Timur Iskhodzhanov
Modified:
6 years, 6 months ago
CC:
chromium-reviews, native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add a win_force_console=1 GYP flag that makes chrome.exe and nacl64.exe console applications By default, /SUBSYSTEM:WINDOWS doesn't enable stdout/stderr that makes it harder to use logging and debug. This flags allows developer to avoid that behaviour locally. BUG=358267

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -10 lines) Patch
M build/common.gypi View 3 chunks +13 lines, -0 lines 1 comment Download
M chrome/app/chrome_exe_main_win.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/chrome_dll.gypi View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/chrome_exe.gypi View 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/nacl/nacl_exe_win_64.cc View 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
Timur Iskhodzhanov
Scott, Addressing your offline suggestion about http://crrev.com/275067 -- with this patch any developer can make ...
6 years, 6 months ago (2014-06-05 17:43:01 UTC) #1
scottmg
Thanks. It'd be nice to have printf work in regular developer builds. Theoretically, that's buildtype=Dev, ...
6 years, 6 months ago (2014-06-05 18:17:43 UTC) #2
Timur Iskhodzhanov
I don't have a strong opinion on the dev vs Official logic, but popping up ...
6 years, 6 months ago (2014-06-05 18:29:51 UTC) #3
Timur Iskhodzhanov
I don't have a strong opinion on the dev vs Official logic, but popping up ...
6 years, 6 months ago (2014-06-05 18:29:51 UTC) #4
scottmg
On 2014/06/05 18:29:51, Timur Iskhodzhanov wrote: > I don't have a strong opinion on the ...
6 years, 6 months ago (2014-06-05 18:43:20 UTC) #5
Timur Iskhodzhanov
Maybe the OR should be put into GYP instead? Like Condition buildtype!=Official force_blah: 1 ? ...
6 years, 6 months ago (2014-06-05 18:47:58 UTC) #6
Timur Iskhodzhanov
Maybe the OR should be put into GYP instead? Like Condition buildtype!=Official force_blah: 1 ? ...
6 years, 6 months ago (2014-06-05 18:47:58 UTC) #7
cpu_(ooo_6.6-7.5)
How about instead to have a flag that causes code to call AllocConsole ? This ...
6 years, 6 months ago (2014-06-05 19:40:38 UTC) #8
scottmg
On 2014/06/05 19:40:38, cpu wrote: > How about instead to have a flag that causes ...
6 years, 6 months ago (2014-06-05 20:23:12 UTC) #9
Timur Iskhodzhanov
--enable-logging=force-console, maybe?
6 years, 6 months ago (2014-06-06 11:19:33 UTC) #10
cpu_(ooo_6.6-7.5)
sounds good to me.
6 years, 6 months ago (2014-06-10 01:31:37 UTC) #11
cpu_(ooo_6.6-7.5)
adding rvargas again for sanity check.
6 years, 6 months ago (2014-06-10 01:32:11 UTC) #12
rvargas (doing something else)
6 years, 6 months ago (2014-06-10 02:04:40 UTC) #13
I'm getting a little confused by this.

If the desired is to enable printf debugging, why not use logs instead for that?
(seems like that's the conclusion of the thread)

If the desire is to deal with logs easier, what's wrong with sawbuck?
(http://www.chromium.org/for-testers/enable-logging)

Between forcing everyone dev to have a console and adding another command line
option to get one, I'd also go with the command line.

Between adding another command line option (+supported workflow +more log code)
and just sending people to sawbuck I'd go with sawbuck.

My last point is that, although there's lot of stuff on dev builds or through
command line options that are not intended for users (makes us run different
code etc), attaching a console (or changing the subsystem) is something that
raises internal alarms... it may be just FUD, but we probably should not do that
unless there's a strong reason for it.

Powered by Google App Engine
This is Rietveld 408576698