diff --git a/Cargo.toml b/Cargo.toml index df589c838cc..4364c962e0e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,6 +8,12 @@ resolver = "2" # target folder, but we don't require stack traces in most cases. debug = false +[profile.dev-debug] +# A version of the dev profile with debug information enabled, for e.g. local +# debugging. +inherits = "dev" +debug = true + [profile.release] # In release, however, we do want full debug information to report # panic and error stack traces to Sentry. diff --git a/README.md b/README.md index 918628a5407..6402e9b8c83 100644 --- a/README.md +++ b/README.md @@ -183,6 +183,12 @@ make format make lint ``` +### Debugging + +Developer builds do not include debug information by default. If you want to +attach a debugger to your local Relay, you can use the provided `dev-debug` +profile instead with `cargo run --all-features --profile dev-debug`. + ### Python and C-ABI Potentially, new functionality also needs to be added to the Python package.