Skip to content

Commit 0d2d2f5

Browse files
committed
CHG: Reintroduce break on exception durign debug
1 parent 9578d50 commit 0d2d2f5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/global/misc/src/MGlobal.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ using namespace std;
4444

4545
// MEGAlib libs:
4646
#include "MGUIDefaults.h"
47+
#include "MExceptions.h"
4748
#include "MStreams.h"
4849
#include "MFile.h"
4950

@@ -152,6 +153,9 @@ bool MGlobal::Initialize(MString ProgramName, MString ProgramDescription)
152153
g_OSType = "Unknown";
153154
#endif
154155

156+
#ifndef NDEBUG
157+
MException::UseAbort();
158+
#endif
155159

156160
// Load the GUI defaults by initializing the singleton
157161
MGUIDefaults::GetInstance();

0 commit comments

Comments
 (0)