Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1062)

Side by Side Diff: base/debug/debugger.h

Issue 6092005: Remove base/debug_util. Move the debug UI related functions to base/debug/deb... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/base.gypi ('k') | base/debug/debugger.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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
(...skipping 15 matching lines...) Expand all
26 // On OS X, the underlying mechanism doesn't work when the sandbox is enabled. 26 // On OS X, the underlying mechanism doesn't work when the sandbox is enabled.
27 // To get around this, this function caches its value. 27 // To get around this, this function caches its value.
28 // 28 //
29 // WARNING: Because of this, on OS X, a call MUST be made to this function 29 // WARNING: Because of this, on OS X, a call MUST be made to this function
30 // BEFORE the sandbox is enabled. 30 // BEFORE the sandbox is enabled.
31 bool BeingDebugged(); 31 bool BeingDebugged();
32 32
33 // Break into the debugger, assumes a debugger is present. 33 // Break into the debugger, assumes a debugger is present.
34 void BreakDebugger(); 34 void BreakDebugger();
35 35
36 // Used in test code, this controls whether showing dialogs and breaking into
37 // the debugger is suppressed for debug errors, even in debug mode (normally
38 // release mode doesn't do this stuff -- this is controlled separately).
39 // Normally UI is not suppressed. This is normally used when running automated
40 // tests where we want a crash rather than a dialog or a debugger.
41 void SetSuppressDebugUI(bool suppress);
42 bool IsDebugUISuppressed();
43
36 } // namespace debug 44 } // namespace debug
37 } // namespace base 45 } // namespace base
38 46
39 #endif // BASE_DEBUG_DEBUGGER_H 47 #endif // BASE_DEBUG_DEBUGGER_H
OLDNEW
« no previous file with comments | « base/base.gypi ('k') | base/debug/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698