Building your app for testing
You can build your app in one of two modes.
Debug mode: Debug mode should be used when you are preparing your app for testing. When you build the app in debug mode, the command packages your resources and plugins together in a .bar file, but does not sign it. If you intend to test your app on a device, but have not already created and installed a debug token, you can supply the keystore password, and the build script creates and installs the debug token on the device for you as well.
Debug mode also enables Web Inspector for the app, which allows you to remotely inspect the source code. A prompt displays the URL that you can use to connect to and inspect your app. For more information on using Web Inspector, see Debugging using Web Inspector.
Release mode: Release mode should be used at the end of the development cycle when you are preparing your app to be submitted to BlackBerry World. When you build your app in release mode, the command packages your resources and plugins together in a .bar file, then signs the app. For more information, see Building and signing your completed app.
Last modified: 2014-02-06