table of contents
- experimental 3.3~git20250806+ds-1
SDL_HINT_DEBUG_LOGGING(3) | SDL3 FUNCTIONS | SDL_HINT_DEBUG_LOGGING(3) |
NAME¶
SDL_HINT_DEBUG_LOGGING - A variable controlling whether SDL logs some debug information.
SYNOPSIS¶
#include <SDL3/SDL_hints.h>
#define SDL_HINT_DEBUG_LOGGING "SDL_DEBUG_LOGGING"
DESCRIPTION¶
The variable can be set to the following values:
• "0": SDL debug information will not be logged. (default)
• "1": SDL debug information will be logged.
This is generally meant to be used as an environment variable to let end-users report what subsystems were chosen on their system, perhaps what sort of hardware they are running on, etc, to aid in debugging. Logged information is sent through SDL_Log(), which means by default they appear on stdout on most platforms, or maybe OutputDebugString() on Windows, and can be funneled by the app with SDL_SetLogOutputFunction(), etc.
The specific output might change between SDL versions; more information might be deemed useful in the future.
This hint can be set anytime, but the specific logs are generated during subsystem init.
AVAILABILITY¶
This hint is available since SDL 3.4.0.
SDL 3.3.0 | Simple Directmedia Layer |