Skip to content

Commit d0fa717

Browse files
authored
Update index.mdx
1 parent 40424d3 commit d0fa717

File tree

1 file changed

+6
-11
lines changed
  • docs/platforms/rust/common/source-context

1 file changed

+6
-11
lines changed

docs/platforms/rust/common/source-context/index.mdx

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,22 @@ Then, enable full debug information for your release build:
1414
debug = true
1515
```
1616

17-
We will strip the binary, extract the necessary debug information and upload it to Sentry along with the source code.
17+
The binary will be stripped of the debug information which will be collected along with the source code and uploaded to Sentry.
1818

1919
## Upload debug information files and source code
2020

21-
Build the release binary, strip and extract debug information:
21+
Build the release binary, extract debug information and strip it from the binary:
2222
```bash
2323
cargo build --release
2424
objcopy --only-keep-debug target/release/app{,.d}
2525
objcopy --strip-debug --strip-unneeded target/release/app
2626
objcopy --add-gnu-debuglink target/release/app{.d,}
27-
zip app-debug.zip target/release/app.d
2827
```
2928

30-
Use Sentry CLI to create a source bundle:
29+
If you don't want to strip the binary, you should disable the `debug-images` integration of the SDK, as otherwise you will run into the issue documented [here](https://github.com/getsentry/sentry-rust/issues/470#issuecomment-1472136215) which could cause duplicated frames to appear in your Sentry issues.
3130

32-
```bash
33-
sentry-cli difutil bundle-sources target/release/app.d
34-
mv target/release/app.src.zip ./app.src.zip
35-
```
31+
Use Sentry CLI to upload debug information and source files:
3632

37-
Finally, use Sentry CLI to upload both debug information files and sources to Sentry:
38-
```bash
39-
sentry-cli upload-dif ./app-debug.zip ./app.src.zip
33+
```bash
34+
sentry-cli debug-files upload --include-sources .
4035
```

0 commit comments

Comments
 (0)