Modules

Debug

moduleSource

Available on macOS, Linux, Windows, Wasm

#import "Debug";

Module parameters#

USE_GRAPHICS := true
Reports a failed assert in an interactive window, not only on the console.

Procedures#

General#

Debug report mode#

Debug native#

backtrace2 overloadssince 0.31.0Source
(trace: [] *void, skip := 0) -> int
(skip := 0) -> [] string
abortsince 0.31.0Source
(exit_code := Exit_Code.Abort)

Debug lifecycle#

initsince 0.31.0Source
()

Process handler ownership is implemented by the source-built OS helper.

os_loggerWindows onlysince 0.31.0Source
(message: string, data: *void, info: Log_Info)

Independent policy: preserve message bytes on the native diagnostic sink. Log_Info metadata and caller data do not change the message text.

Debug assertions#

(loc: Source_Code_Location, message: string) -> Assert_Response
(loc: Source_Code_Location, message: string) -> Assert_Response
(loc: Source_Code_Location, message: string) -> Assert_Response

Debug dumps#

write_minidump3 overloadssince 0.31.0Source
(pExceptionInfo: *Windows.EXCEPTION_POINTERS, large_dump := false) -> string
(pExceptionInfo: *void, large_dump := false) -> string
(pExceptionInfo: *void, large_dump := false) -> string