---
title: "Debug Information"
description: "Learn more about uploading debug symbols when building your app."
url: https://docs.sentry.io/platforms/javascript/guides/cordova/upload-debug/
---

# Debug Information | Sentry for Cordova

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](https://docs.sentry.io/cli/dif.md#uploading-files).

## [JavaScript Source Maps](https://docs.sentry.io/platforms/javascript/guides/cordova/upload-debug.md#javascript-source-maps)

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

## [Uploading Using Xcode](https://docs.sentry.io/platforms/javascript/guides/cordova/upload-debug.md#uploading-using-xcode)

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`.

```bash
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
```
