My preference would be to put the debug option into the overflow menu so it does not clutter up the action bar.

    android:showAsAction="never" />