| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This is a cross platform interface for helper functions related to | 5 // This is a cross platform interface for helper functions related to |
| 6 // debuggers. You should use this to test if you're running under a debugger, | 6 // debuggers. You should use this to test if you're running under a debugger, |
| 7 // and if you would like to yield (breakpoint) into the debugger. | 7 // and if you would like to yield (breakpoint) into the debugger. |
| 8 | 8 |
| 9 #ifndef BASE_DEBUG_DEBUGGER_H_ | 9 #ifndef BASE_DEBUG_DEBUGGER_H |
| 10 #define BASE_DEBUG_DEBUGGER_H_ | 10 #define BASE_DEBUG_DEBUGGER_H |
| 11 | 11 |
| 12 #include "base/base_export.h" | 12 #include "base/base_export.h" |
| 13 | 13 |
| 14 namespace base { | 14 namespace base { |
| 15 namespace debug { | 15 namespace debug { |
| 16 | 16 |
| 17 // Waits wait_seconds seconds for a debugger to attach to the current process. | 17 // Waits wait_seconds seconds for a debugger to attach to the current process. |
| 18 // When silent is false, an exception is thrown when a debugger is detected. | 18 // When silent is false, an exception is thrown when a debugger is detected. |
| 19 BASE_EXPORT bool WaitForDebugger(int wait_seconds, bool silent); | 19 BASE_EXPORT bool WaitForDebugger(int wait_seconds, bool silent); |
| 20 | 20 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 34 // the debugger is suppressed for debug errors, even in debug mode (normally | 34 // the debugger is suppressed for debug errors, even in debug mode (normally |
| 35 // release mode doesn't do this stuff -- this is controlled separately). | 35 // release mode doesn't do this stuff -- this is controlled separately). |
| 36 // Normally UI is not suppressed. This is normally used when running automated | 36 // Normally UI is not suppressed. This is normally used when running automated |
| 37 // tests where we want a crash rather than a dialog or a debugger. | 37 // tests where we want a crash rather than a dialog or a debugger. |
| 38 BASE_EXPORT void SetSuppressDebugUI(bool suppress); | 38 BASE_EXPORT void SetSuppressDebugUI(bool suppress); |
| 39 BASE_EXPORT bool IsDebugUISuppressed(); | 39 BASE_EXPORT bool IsDebugUISuppressed(); |
| 40 | 40 |
| 41 } // namespace debug | 41 } // namespace debug |
| 42 } // namespace base | 42 } // namespace base |
| 43 | 43 |
| 44 #endif // BASE_DEBUG_DEBUGGER_H_ | 44 #endif // BASE_DEBUG_DEBUGGER_H |
| OLD | NEW |