brettw@chromium.org | 1c8c3be | 2010-08-18 04:40:11 +0900 | [diff] [blame] | 1 | // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
license.bot | f003cfe | 2008-08-24 09:55:55 +0900 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
initial.commit | 3f4a732 | 2008-07-27 06:49:38 +0900 | [diff] [blame] | 4 | |
| 5 | #include "base/base_switches.h" |
| 6 | |
| 7 | namespace switches { |
| 8 | |
| 9 | // If the program includes chrome/common/debug_on_start.h, the process will |
| 10 | // start the JIT system-registered debugger on itself and will wait for 60 |
| 11 | // seconds for the debugger to attach to itself. Then a break point will be hit. |
evan@chromium.org | e3fca69 | 2009-10-13 11:07:25 +0900 | [diff] [blame] | 12 | const char kDebugOnStart[] = "debug-on-start"; |
initial.commit | 3f4a732 | 2008-07-27 06:49:38 +0900 | [diff] [blame] | 13 | |
nsylvain@chromium.org | 12ec1e8 | 2010-08-10 02:32:32 +0900 | [diff] [blame] | 14 | // Disables the crash reporting. |
| 15 | const char kDisableBreakpad[] = "disable-breakpad"; |
| 16 | |
nsylvain@chromium.org | 12ec1e8 | 2010-08-10 02:32:32 +0900 | [diff] [blame] | 17 | // Enable DCHECKs in release mode. |
| 18 | const char kEnableDCHECK[] = "enable-dcheck"; |
| 19 | |
brettw@chromium.org | 1c8c3be | 2010-08-18 04:40:11 +0900 | [diff] [blame] | 20 | // Generates full memory crash dump. |
| 21 | const char kFullMemoryCrashReport[] = "full-memory-crash-report"; |
| 22 | |
| 23 | // Suppresses all error dialogs when present. |
| 24 | const char kNoErrorDialogs[] = "noerrdialogs"; |
| 25 | |
abarth@chromium.org | 362011a | 2009-07-17 15:11:56 +0900 | [diff] [blame] | 26 | // Disable win_util::MessageBox. This is useful when running as part of |
| 27 | // scripts that do not have a user interface. |
evan@chromium.org | e3fca69 | 2009-10-13 11:07:25 +0900 | [diff] [blame] | 28 | const char kNoMessageBox[] = "no-message-box"; |
abarth@chromium.org | 362011a | 2009-07-17 15:11:56 +0900 | [diff] [blame] | 29 | |
brettw@chromium.org | 1c8c3be | 2010-08-18 04:40:11 +0900 | [diff] [blame] | 30 | // When running certain tests that spawn child processes, this switch indicates |
| 31 | // to the test framework that the current process is a child process. |
| 32 | const char kTestChildProcess[] = "test-child-process"; |
| 33 | |
akalin@chromium.org | f0ee79c | 2010-09-30 04:26:36 +0900 | [diff] [blame] | 34 | // Gives the default maximal active V-logging level; 0 is the default. |
| 35 | // Normally positive values are used for V-logging levels. |
| 36 | const char kV[] = "v"; |
| 37 | |
| 38 | // Gives the per-module maximal V-logging levels to override the value |
| 39 | // given by --v. E.g. "my_module=2,foo*=3" would change the logging |
| 40 | // level for all code in source files "my_module.*" and "foo*.*" |
| 41 | // ("-inl" suffixes are also disregarded for this matching). |
akalin@chromium.org | 859d7d4 | 2010-10-29 09:39:48 +0900 | [diff] [blame^] | 42 | // |
| 43 | // Any pattern containing a forward or backward slash will be tested |
| 44 | // against the whole pathname and not just the module. E.g., |
| 45 | // "*/foo/bar/*=2" would change the logging level for all code in |
| 46 | // source files under a "foo/bar" directory. |
akalin@chromium.org | f0ee79c | 2010-09-30 04:26:36 +0900 | [diff] [blame] | 47 | const char kVModule[] = "vmodule"; |
| 48 | |
brettw@chromium.org | 1c8c3be | 2010-08-18 04:40:11 +0900 | [diff] [blame] | 49 | // Will wait for 60 seconds for a debugger to come to attach to the process. |
| 50 | const char kWaitForDebugger[] = "wait-for-debugger"; |
| 51 | |
initial.commit | 3f4a732 | 2008-07-27 06:49:38 +0900 | [diff] [blame] | 52 | } // namespace switches |