Debug Information

Learn more about uploading debug symbols when building your app.

Debug symbols help provide you with readable stack traces, which Sentry displays on the Issue Details page, to help you triage an issue.

We do not currently support non-JavaScript automatic source map uploads or build scripts for Android. You must upload files manually using our CLI.

JavaScript Sourcemaps are automatically uploaded at build time when running cordova build.

To run the debug information upload when building your app, add the following as a run script phase in Xcode. Also make sure to set the DEBUG_INFORMATION_FORMAT in your project settings to DWARF and dSYM file.

Copied
export SENTRY_PROPERTIES=sentry.properties
function getProperty {
    PROP_KEY=$1
    PROP_VALUE=`cat $SENTRY_PROPERTIES | grep "$PROP_KEY" | cut -d'=' -f2`
    echo $PROP_VALUE
}
if [ ! -f $SENTRY_PROPERTIES ]; then
    echo "warning: SENTRY: sentry.properties file not found! Skipping symbol upload."
    exit 0
fi
echo "# Reading property from $SENTRY_PROPERTIES"
SENTRY_CLI=$(getProperty "cli.executable")
SENTRY_COMMAND="$SENTRY_CLI debug-files upload \"$DWARF_DSYM_FOLDER_PATH\""
$SENTRY_COMMAND
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").