OpendTect  6.6
Classes | Namespaces | Macros | Functions
debug.h File Reference
Include dependency graph for debug.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  System::CrashDumper
 

Namespaces

 google_breakpad
 
 DBG
 Defines a generic interface for supplying debug/runtime info.
 
 System
 

Macros

#define pDebugMsg(msg)   DBG::message(msg,::className(*this),__FILE__,__LINE__)
 
#define pFreeDebugMsg(msg)   DBG::message(msg,__func__,__FILE__,__LINE__)
 
#define pFDebugMsg(flag, msg)   DBG::message(flag,msg,::className(*this),__FILE__,__LINE__)
 
#define pFreeFDebugMsg(flag, msg)   DBG::message(flag,msg,__func__,__FILE__,__LINE__)
 
#define DBG_DBG   0x0001
 
#define DBG_MT   0x0002
 
#define DBG_UI   0x0004
 
#define DBG_IO   0x0008
 
#define DBG_SOCKIO   0x0010
 
#define DBG_MM   0x0020
 
#define DBG_SETTINGS   0x0040
 
#define DBG_PROGSTART   0x0080
 
#define DBG_FILEPATH   0x0100
 
#define DGB_SERVICES   0x0200
 

Functions

void DBG::turnOn (int flag)
 Overrides the envirnonment variable. More...
 
bool DBG::isOn (int flag=0xffff)
 
void DBG::message (const char *)
 default: to stderr More...
 
void DBG::message (const char *, const char *cname, const char *fname, int linrnr)
 
void DBG::message (int flag, const char *msg)
 
void DBG::message (int flag, const char *, const char *cname, const char *fname, int linrnr)
 
void DBG::putProgInfo (int, char **)
 one line; more if isOn() More...
 
void DBG::forceCrash (bool withdump)
 
bool DBG::crashOnNaN ()
 
bool DBG::setCrashOnProgError (bool yn)
 Returns old status. More...
 
int od_debug_isOn (int flag)
 
void od_debug_message (const char *msg)
 
void od_debug_messagef (int flag, const char *msg)
 
void od_debug_putProgInfo (int, char **)
 
void od_putProgInfo (int, char **)
 
void od_init_test_program (int, char **)
 

Macro Definition Documentation

◆ DBG_DBG

#define DBG_DBG   0x0001

◆ DBG_FILEPATH

#define DBG_FILEPATH   0x0100

◆ DBG_IO

#define DBG_IO   0x0008

◆ DBG_MM

#define DBG_MM   0x0020

◆ DBG_MT

#define DBG_MT   0x0002

◆ DBG_PROGSTART

#define DBG_PROGSTART   0x0080

◆ DBG_SETTINGS

#define DBG_SETTINGS   0x0040

◆ DBG_SOCKIO

#define DBG_SOCKIO   0x0010

◆ DBG_UI

#define DBG_UI   0x0004

◆ DGB_SERVICES

#define DGB_SERVICES   0x0200

◆ pDebugMsg

#define pDebugMsg (   msg)    DBG::message(msg,::className(*this),__FILE__,__LINE__)

◆ pFDebugMsg

#define pFDebugMsg (   flag,
  msg 
)    DBG::message(flag,msg,::className(*this),__FILE__,__LINE__)

◆ pFreeDebugMsg

#define pFreeDebugMsg (   msg)    DBG::message(msg,__func__,__FILE__,__LINE__)

◆ pFreeFDebugMsg

#define pFreeFDebugMsg (   flag,
  msg 
)    DBG::message(flag,msg,__func__,__FILE__,__LINE__)

Function Documentation

◆ od_debug_isOn()

int od_debug_isOn ( int  flag)

◆ od_debug_message()

void od_debug_message ( const char *  msg)

◆ od_debug_messagef()

void od_debug_messagef ( int  flag,
const char *  msg 
)

◆ od_debug_putProgInfo()

void od_debug_putProgInfo ( int  ,
char **   
)

◆ od_init_test_program()

void od_init_test_program ( int  ,
char **   
)

Calls SetProgramArgs, sets crash on programmer error, and installs signal handling for crashes.

◆ od_putProgInfo()

void od_putProgInfo ( int  ,
char **   
)

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2021