Commands
debug-files
Work with debug information files
Commands
Section titled “Commands”sentry debug-files check <path>
Section titled “sentry debug-files check <path>”Inspect a debug information file
Arguments:
| Argument | Description |
|---|---|
<path> | Path to the debug information file |
sentry debug-files bundle-jvm <path>
Section titled “sentry debug-files bundle-jvm <path>”Create a JVM source bundle for source context
Arguments:
| Argument | Description |
|---|---|
<path> | Directory containing JVM source files |
Options:
| Option | Description |
|---|---|
-o, --output <output> | Output directory for the bundle ZIP |
-d, --debug-id <debug-id> | Debug ID (UUID) to stamp on the bundle |
-e, --exclude <exclude>... | Additional directory names to exclude (repeatable) |
All commands support --json for machine-readable output and --fields to select specific JSON fields.
Examples
Section titled “Examples”# Inspect a debug information file (auto-detects the format)sentry debug-files check ./libexample.sosentry debug-files check MyApp.dSYM/Contents/Resources/DWARF/MyAppsentry debug-files check ./app.pdb --json
# Bundle JVM sources with a debug IDsentry debug-files bundle-jvm --output ./out --debug-id <uuid> ./src
# Exclude additional directoriessentry debug-files bundle-jvm --output ./out --debug-id <uuid> --exclude generated --exclude build-tools ./src
# Output as JSONsentry debug-files bundle-jvm --output ./out --debug-id <uuid> --json ./srcImportant Notes
Section titled “Important Notes”checkandbundle-jvmare local-only — they make no network requests. Both parse object files in-process (Mach-O/dSYM, ELF, PE/PDB, Portable PDB, WebAssembly, Breakpad, source bundles) via a bundledsymbolicWASM module.checkexits non-zero if the file is not usable for symbolication (no debug id or no useful features).- Upload a JVM bundle separately via
sentry debug-files upload --type jvm. - Supported JVM source file extensions:
.java,.kt,.scala,.sc,.groovy,.gvy,.gy,.gsh,.clj,.cljc - Build output directories (
build/,target/,out/,bin/) are automatically excluded unless they appear under asrc/ancestor. - Source-set prefixes (e.g.,
src/main/java/) are stripped to produce package-relative paths matching JVM stack traces.