From 23a5edbd118024ac6c178cf6a1e3e53f7909f215 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Wed, 13 Apr 2016 20:51:03 +0200 Subject: [PATCH] Breaking into the debugger from the menu. This may be useful in Windows. --- xs/src/slic3r/GUI/GUI.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xs/src/slic3r/GUI/GUI.cpp b/xs/src/slic3r/GUI/GUI.cpp index eab1f6583..934d07ebd 100644 --- a/xs/src/slic3r/GUI/GUI.cpp +++ b/xs/src/slic3r/GUI/GUI.cpp @@ -39,7 +39,11 @@ enable_screensaver() bool debugged() { + #ifdef _WIN32 return IsDebuggerPresent(); + #else + return false; + #endif /* _WIN32 */ } void