|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
|
2 // Use of this source code is governed by a BSD-style license that can be |
|
3 // found in the LICENSE file. |
|
4 |
|
5 #include "base/base_switches.h" |
|
6 |
|
7 namespace switches { |
|
8 |
|
9 // If the program includes base/debug/debug_on_start_win.h, the process will |
|
10 // (on Windows only) start the JIT system-registered debugger on itself and |
|
11 // will wait for 60 seconds for the debugger to attach to itself. Then a break |
|
12 // point will be hit. |
|
13 const char kDebugOnStart[] = "debug-on-start"; |
|
14 |
|
15 // Disables the crash reporting. |
|
16 const char kDisableBreakpad[] = "disable-breakpad"; |
|
17 |
|
18 // Enable DCHECKs in release mode. |
|
19 const char kEnableDCHECK[] = "enable-dcheck"; |
|
20 |
|
21 // Generates full memory crash dump. |
|
22 const char kFullMemoryCrashReport[] = "full-memory-crash-report"; |
|
23 |
|
24 // Suppresses all error dialogs when present. |
|
25 const char kNoErrorDialogs[] = "noerrdialogs"; |
|
26 |
|
27 // When running certain tests that spawn child processes, this switch indicates |
|
28 // to the test framework that the current process is a child process. |
|
29 const char kTestChildProcess[] = "test-child-process"; |
|
30 |
|
31 // Gives the default maximal active V-logging level; 0 is the default. |
|
32 // Normally positive values are used for V-logging levels. |
|
33 const char kV[] = "v"; |
|
34 |
|
35 // Gives the per-module maximal V-logging levels to override the value |
|
36 // given by --v. E.g. "my_module=2,foo*=3" would change the logging |
|
37 // level for all code in source files "my_module.*" and "foo*.*" |
|
38 // ("-inl" suffixes are also disregarded for this matching). |
|
39 // |
|
40 // Any pattern containing a forward or backward slash will be tested |
|
41 // against the whole pathname and not just the module. E.g., |
|
42 // "*/foo/bar/*=2" would change the logging level for all code in |
|
43 // source files under a "foo/bar" directory. |
|
44 const char kVModule[] = "vmodule"; |
|
45 |
|
46 // Will wait for 60 seconds for a debugger to come to attach to the process. |
|
47 const char kWaitForDebugger[] = "wait-for-debugger"; |
|
48 |
|
49 // Sends a pretty-printed version of tracing info to the console. |
|
50 const char kTraceToConsole[] = "trace-to-console"; |
|
51 |
|
52 #if defined(OS_POSIX) |
|
53 // A flag, generated internally for renderer and other helper process command |
|
54 // lines on Linux and Mac. It tells the helper process to enable crash dumping |
|
55 // and reporting, because helpers cannot access the files needed to make this |
|
56 // decision. |
|
57 const char kEnableCrashReporter[] = "enable-crash-reporter"; |
|
58 #endif |
|
59 |
|
60 } // namespace switches |