Debugging methods and tools are available for the debug versions of standalone
apps.
Create a debug version of a deployed app
To create a debug version of an app, you must set the DEBUG_PACKAGE environment variable to 1 (or TRUE) prior to packaging the app.