util: add debug utility

This commit is contained in:
DH 2024-11-24 14:05:46 +03:00
parent 84026f1333
commit 2d407fbf33
3 changed files with 111 additions and 0 deletions

9
rx/include/rx/debug.hpp Normal file
View file

@ -0,0 +1,9 @@
#pragma once
namespace rx {
bool isDebuggerPresent();
void waitForDebugger();
void runDebugger();
void breakpoint();
void breakpointIfDebugging();
} // namespace rx