diff --git a/Cargo.toml b/Cargo.toml
index b41ed5c6ee55094cec9b93d747068c0ba14c7afb..355bcc577d51d8f60e626cd0658fced8750b7fe6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -7,3 +7,7 @@ edition = "2021"
 itertools = "0.13.0"
 nauty-Traces-sys = "0.8.0"
 union-find = "0.4.3"
+
+[profile.release-debug]
+inherits = "release"
+debug = true