HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
debugger.hpp File Reference

Utilities to interact with the debugger this application runs under. More...

#include "architecture.hpp"
#include "exception.hpp"
#include <format>

Go to the source code of this file.

Namespaces

namespace  hi
 geometry/margins.hpp
 
namespace  hi::v1
 The HikoGUI API version 1.
 

Macros

#define hi_debug_break()
 Debug-break.
 
#define hi_debug_abort(...)
 Debug-break and abort the application.
 

Functions

void hi::v1::prepare_debug_break () noexcept
 Prepare for breaking in the debugger.
 

Detailed Description

Utilities to interact with the debugger this application runs under.

Macro Definition Documentation

◆ hi_debug_abort

#define hi_debug_abort ( ...)
Value:
hi_set_terminate_message(__VA_ARGS__); \
hi_debug_break(); \
std::terminate()

Debug-break and abort the application.

This function will break the application in the debugger. Potentially it will start the Just-In-Time debugger if one is configured.

Eventually it will terminate the application and potentially dump a core file for post mortem debugging.

Parameters
...The reason why the abort is done.

◆ hi_debug_break

#define hi_debug_break ( )
Value:
__debugbreak()
void prepare_debug_break() noexcept
Prepare for breaking in the debugger.

Debug-break.

This function will break the application in the debugger. Potentially it will start the Just-In-Time debugger if one is configured. Otherwise it will terminate the application and potentially dump a core file for post mortem debugging.