From c514006f41526f006257b54de8d6e4f7cf8ee112 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com>
Date: Mon, 17 Apr 2023 20:47:16 +0100
Subject: [PATCH] chore: debug feature support in Boytacean SDL

---
 frontends/sdl/Cargo.toml | 3 +++
 frontends/sdl/README.md  | 6 ++++++
 2 files changed, 9 insertions(+)

diff --git a/frontends/sdl/Cargo.toml b/frontends/sdl/Cargo.toml
index 4c68892c..70fabd1d 100644
--- a/frontends/sdl/Cargo.toml
+++ b/frontends/sdl/Cargo.toml
@@ -7,6 +7,9 @@ license = "Apache-2.0"
 keywords = ["gameboy", "emulator", "rust", "sdl"]
 edition = "2018"
 
+[features]
+debug = ["boytacean/debug"]
+
 [dependencies.boytacean]
 path = "../.."
 
diff --git a/frontends/sdl/README.md b/frontends/sdl/README.md
index 75c153a4..163d1b2e 100644
--- a/frontends/sdl/README.md
+++ b/frontends/sdl/README.md
@@ -23,3 +23,9 @@ To reload the code continuously use the cargo watch tool:
 cargo install cargo-watch
 cargo watch -x run
 ```
+
+There are some feature flags that control the verbosity of the emulator to run in debug mode use:
+
+```bash
+cargo run --features debug
+```
-- 
GitLab