15821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copyright (c) 2012 The Chromium Authors. All rights reserved. 25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// found in the LICENSE file. 45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 55821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include "base/base_switches.h" 65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)namespace switches { 85821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// If the program includes base/debug/debug_on_start_win.h, the process will 105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (on Windows only) start the JIT system-registered debugger on itself and 115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// will wait for 60 seconds for the debugger to attach to itself. Then a break 125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// point will be hit. 135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDebugOnStart[] = "debug-on-start"; 145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables the crash reporting. 165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableBreakpad[] = "disable-breakpad"; 175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enable DCHECKs in release mode. 195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableDCHECK[] = "enable-dcheck"; 205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Generates full memory crash dump. 225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kFullMemoryCrashReport[] = "full-memory-crash-report"; 235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Suppresses all error dialogs when present. 255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNoErrorDialogs[] = "noerrdialogs"; 265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// When running certain tests that spawn child processes, this switch indicates 285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// to the test framework that the current process is a child process. 295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTestChildProcess[] = "test-child-process"; 305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Gives the default maximal active V-logging level; 0 is the default. 325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Normally positive values are used for V-logging levels. 335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kV[] = "v"; 345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Gives the per-module maximal V-logging levels to override the value 365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// given by --v. E.g. "my_module=2,foo*=3" would change the logging 375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// level for all code in source files "my_module.*" and "foo*.*" 385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// ("-inl" suffixes are also disregarded for this matching). 395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Any pattern containing a forward or backward slash will be tested 415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// against the whole pathname and not just the module. E.g., 425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// "*/foo/bar/*=2" would change the logging level for all code in 435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// source files under a "foo/bar" directory. 445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kVModule[] = "vmodule"; 455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Will wait for 60 seconds for a debugger to come to attach to the process. 475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWaitForDebugger[] = "wait-for-debugger"; 485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 497dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// Sends a pretty-printed version of tracing info to the console. 507dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochconst char kTraceToConsole[] = "trace-to-console"; 517dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch 52ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch#if defined(OS_POSIX) 53ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// A flag, generated internally for renderer and other helper process command 54ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// lines on Linux and Mac. It tells the helper process to enable crash dumping 55ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// and reporting, because helpers cannot access the files needed to make this 56ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// decision. 57ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdochconst char kEnableCrashReporter[] = "enable-crash-reporter"; 58ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch#endif 59ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch 605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} // namespace switches 61