diff --git a/frontends/sdl/Cargo.toml b/frontends/sdl/Cargo.toml index 4c68892c503034d1a0266613cd999d9180cba59b..70fabd1dbd1e4ac50407cfc1a8e4ea616568adc4 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 75c153a41485dcef6f204b8b9d1450bde176794e..163d1b2e9ff09f07c11d104e7a28e0beea1101c3 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 +```