Techniques Anti-debugging focus on making it difficult or impossible for debuggers to analyze malware code. This repository shows some that can be used.
You can run with cargo run or the compiled binary directly:
cargo run
target/release/anti_debug.exe