Skip to content

Commit

Permalink
chore: add debug profile + instructions to readme (#4494)
Browse files Browse the repository at this point in the history
After troubleshooting my failure to debug Relay using VSCode, I found
that we had `debug` set to `false` in the dev profile. Added a note to
the readme about it in case anyone else runs into the same issue.

---------

Co-authored-by: Joris Bayer <[email protected]>
  • Loading branch information
mjq and jjbayer authored Feb 19, 2025
1 parent a098d9e commit 2d38b5f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2d38b5f

Please sign in to comment.