theblitz
theblitz

Reputation: 6881

Android debug/run configurations

I am trying to figure out what exactly is the difference between debug configuration and run configuration. When is one used and when the other. When I look in them they are both the same for my application:

  1. Launch default activity
  2. Choose deployment target automatically

Upvotes: 4

Views: 1762

Answers (2)

James Moore
James Moore

Reputation: 9026

Notice that when you bring up the configuration window, the buttons in the lower right are different. One says "Debug" and another says "Run."

Dalvik behaves differently when a debugger is attached, take a look in the Android source tree (availabe here and many other places, or your local tree in android/dalvik/docs/debugger.html). That's true for the same code; running the same instance of your app with a debugger attached, and without a debugger attached, are different experiences. It also depends on the version of Android you're running.

Run configuration doesn't recompile your app, it just doesn't turn on some debugging behavior in Dalvik. For my app, that's a huge speed increase; your experience may vary.

Upvotes: 0

tugs
tugs

Reputation: 593

A debug configuration packages your app with debugging info so you can use break points and step through the code as it runs.

A run configuration is what you would do to get a final product type apk.

Upvotes: 1

Related Questions