1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #ifndef INCLUDED_COMPHELPER_DEBUGINFO_HXX
11 #define INCLUDED_COMPHELPER_DEBUGINFO_HXX
13 #include <comphelper/comphelperdllapi.h>
18 /// Returns true if the process is running with a debugger attached.
20 /// This is useful to disable watchdogs or increase timeouts if they trigger
21 /// too soon while using a debugger.
22 COMPHELPER_DLLPUBLIC
bool isDebuggerAttached();
25 // For detecting whether Valgrind is used, add valgrind to gb_Library_use_externals
26 // and then in code use:
27 // #if defined HAVE_VALGRIND_HEADERS
28 // #include <valgrind/memcheck.h>
31 // #if defined HAVE_VALGRIND_HEADERS
32 // if( RUNNING_ON_VALGRIND )
34 } // namespace comphelper
36 #endif // INCLUDED_COMPHELPER_DEBUGINFO_HXX
38 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */