Debug Information

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

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").