[+] Debug config
[*] Update legacy macros to modern pipeline under debug
This commit is contained in:
parent
db3f41233b
commit
b500c0bd5f
@ -250,6 +250,11 @@ namespace Aurora
|
||||
AuString defaultBrand = "Aurora";
|
||||
};
|
||||
|
||||
struct DebugConfig
|
||||
{
|
||||
bool nonshipPrecachesSymbols {true};
|
||||
};
|
||||
|
||||
struct RuntimeStartInfo
|
||||
{
|
||||
ConsoleConfig console;
|
||||
@ -257,6 +262,7 @@ namespace Aurora
|
||||
TelemetryConfig telemetry;
|
||||
AsyncConfig async;
|
||||
FIOConfig fio;
|
||||
DebugConfig debug;
|
||||
bool bFIODisableBatching {true};
|
||||
};
|
||||
|
||||
|
@ -103,7 +103,7 @@ namespace Aurora::Console::ConsoleStd
|
||||
static AuList<NoncanonicalInput> gCanonicalBuffer;
|
||||
|
||||
//static AuThreadPrimitives::MutexUnique_t gRingLock = AuThreadPrimitives::MutexUnique();
|
||||
static AuThreadPrimitives::SpinLock gRingLock {};// = AuThreadPrimitives::MutexUnique();
|
||||
static AuThreadPrimitives::SpinLock gRingLock;// = AuThreadPrimitives::MutexUnique();
|
||||
|
||||
#if defined(AURORA_IS_MODERNNT_DERIVED)
|
||||
|
||||
|
@ -142,7 +142,7 @@ namespace Aurora::Debug
|
||||
{
|
||||
static bool handlingFatal = false;
|
||||
|
||||
#if defined(DEBUG) || defined(INTERNAL)
|
||||
#if defined(AU_ENABLE_NATIVE_MINIDUMP)
|
||||
if (!fatal)
|
||||
{
|
||||
if (IsDebuggerPresent()) __debugbreak();
|
||||
|
@ -244,7 +244,7 @@ namespace Aurora::Debug
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(DEBUG) || defined(INTERNAL)
|
||||
#if defined(AU_ENABLE_NATIVE_MINIDUMP)
|
||||
void SaveMinidump(_EXCEPTION_POINTERS *ExceptionInfo, bool isFatal)
|
||||
{
|
||||
bool ok {};
|
||||
@ -409,7 +409,10 @@ namespace Aurora::Debug
|
||||
void InitWin32()
|
||||
{
|
||||
// ...
|
||||
if (gRuntimeConfig.debug.nonshipPrecachesSymbols)
|
||||
{
|
||||
CacheInternalBuildSymbols();
|
||||
}
|
||||
|
||||
// ...
|
||||
DisableWindowsErrorReporting();
|
||||
|
@ -11,8 +11,10 @@ namespace Aurora::Debug
|
||||
{
|
||||
void InitWin32();
|
||||
|
||||
#if defined(DEBUG) || defined(INTERNAL)
|
||||
#if defined(AU_CFG_ID_DEBUG) || defined(AU_CFG_ID_INTERNAL)
|
||||
#define AU_ENABLE_NATIVE_MINIDUMP
|
||||
void SaveMinidump(_EXCEPTION_POINTERS *ExceptionInfo, bool isFatal);
|
||||
#endif
|
||||
|
||||
void BlackboxReport(_EXCEPTION_POINTERS *ExceptionInfo, bool isFatal);
|
||||
}
|
Loading…
Reference in New Issue
Block a user