Add debugger detector for Linux

This commit is contained in:
noisyfox 2025-06-02 16:48:58 +08:00
parent 1441da246b
commit fc33a680d1
3 changed files with 24 additions and 1 deletions

View file

@ -2584,7 +2584,7 @@ bool GUI_App::on_init_inner()
bool debugger_attached = false;
#if defined(__WINDOWS__)
debugger_attached = IsDebuggerPresent();
#elif defined(__WXOSX__)
#elif defined(__WXOSX__) || defined(__linux__)
debugger_attached = is_debugger_present();
#endif
if (debugger_attached) {