diff --git a/src/assert.cc b/src/assert.cc index b51815a5..c58d8165 100644 --- a/src/assert.cc +++ b/src/assert.cc @@ -1,6 +1,7 @@ #include "assert.hh" #include "exception.hh" +#include "debug.hh" #include #include @@ -21,6 +22,8 @@ private: void on_assert_failed(const char* message) { String debug_info = "pid: " + to_string(getpid()); + write_debug("assert failed: '"_str + message + "' " + debug_info); + int res = system(("xmessage -buttons 'quit:0,ignore:1' '"_str + message + "\n[Debug Infos]\n" + debug_info + "'").c_str()); switch (res)