michael@0: // Copyright (c) 2012 The Chromium Authors. All rights reserved. michael@0: // Use of this source code is governed by a BSD-style license that can be michael@0: // found in the LICENSE file. michael@0: michael@0: #include "base/base_switches.h" michael@0: michael@0: namespace switches { michael@0: michael@0: // If the program includes base/debug/debug_on_start_win.h, the process will michael@0: // (on Windows only) start the JIT system-registered debugger on itself and michael@0: // will wait for 60 seconds for the debugger to attach to itself. Then a break michael@0: // point will be hit. michael@0: const char kDebugOnStart[] = "debug-on-start"; michael@0: michael@0: // Disables the crash reporting. michael@0: const char kDisableBreakpad[] = "disable-breakpad"; michael@0: michael@0: // Enable DCHECKs in release mode. michael@0: const char kEnableDCHECK[] = "enable-dcheck"; michael@0: michael@0: // Generates full memory crash dump. michael@0: const char kFullMemoryCrashReport[] = "full-memory-crash-report"; michael@0: michael@0: // Suppresses all error dialogs when present. michael@0: const char kNoErrorDialogs[] = "noerrdialogs"; michael@0: michael@0: // When running certain tests that spawn child processes, this switch indicates michael@0: // to the test framework that the current process is a child process. michael@0: const char kTestChildProcess[] = "test-child-process"; michael@0: michael@0: // Gives the default maximal active V-logging level; 0 is the default. michael@0: // Normally positive values are used for V-logging levels. michael@0: const char kV[] = "v"; michael@0: michael@0: // Gives the per-module maximal V-logging levels to override the value michael@0: // given by --v. E.g. "my_module=2,foo*=3" would change the logging michael@0: // level for all code in source files "my_module.*" and "foo*.*" michael@0: // ("-inl" suffixes are also disregarded for this matching). michael@0: // michael@0: // Any pattern containing a forward or backward slash will be tested michael@0: // against the whole pathname and not just the module. E.g., michael@0: // "*/foo/bar/*=2" would change the logging level for all code in michael@0: // source files under a "foo/bar" directory. michael@0: const char kVModule[] = "vmodule"; michael@0: michael@0: // Will wait for 60 seconds for a debugger to come to attach to the process. michael@0: const char kWaitForDebugger[] = "wait-for-debugger"; michael@0: michael@0: // Sends a pretty-printed version of tracing info to the console. michael@0: const char kTraceToConsole[] = "trace-to-console"; michael@0: michael@0: #if defined(OS_POSIX) michael@0: // A flag, generated internally for renderer and other helper process command michael@0: // lines on Linux and Mac. It tells the helper process to enable crash dumping michael@0: // and reporting, because helpers cannot access the files needed to make this michael@0: // decision. michael@0: const char kEnableCrashReporter[] = "enable-crash-reporter"; michael@0: #endif michael@0: michael@0: } // namespace switches