Skip to content
mundusnine edited this page Dec 30, 2023 · 2 revisions

Integrated debugging commands

Cosmopolitan binaries can use debug tools integrated in the executable when you pass theses commands:

--strace: will print the system calls made by the executable. More info.

--ftrace: will analyze and debug kernel activities, offering functions such as latency tracing and event tracing to identify and address performance issues and understand specific kernel behaviors. More info.

"Rust-like" memory safety

Cosmopolitan libc added in this commit a memory hardening feature when a binary is compiled with MODE=dbg. This means that your applications can, at runtime, detect memory errors when in debug mode. For more context this commit message can also be read.

Clone this wiki locally