views:

79

answers:

2

When I run my app on my phone from eclipse, it always runs in debug. This has only recently started to happen. I guess I must have inadvertently changed a preference or something, but can't work out what. Does anyone know how I can switch it back so I can run without debugging?

Thanks in advance

TAO

A: 

Check the VM options in the project's properties. There should be something like -Xdebug=.... Remove that.

I suggest to duplicate the entry and create a second one without the debug options. Also note that under Common, you can save the launch config somewhere (for example in your project), so this setup doesn't get lost.

Aaron Digulla
I think you mean "launch configuration" for the application in your first sentence. Not the properties associated with the project.
Francis Upton
Thanks for the answer. Please can you tell me where to find these settings.ThanksTAO
TheArchedOne
Use "Run Configurations..." in the "Run" menu. The VM options are on the "Arguments" tab.
Aaron Digulla
OK, Run configurations is where I've been loking, but I have no 'Arguments' tab and no VM options. The tabs are 'Android','Target' and 'Common'. I'm using Galileo.TAO
TheArchedOne
Ah, you're on Android. Then see this article: http://source.android.com/using-eclipse Basically, there should be a button "Debug" and "Run" in the toolbar of eclipse The run button is a green arrow, the debug button is a little green bug. Just click on the run button instead of the debug button.
Aaron Digulla
Hi. Sorry, I should have mentioned in my original post that I was on Android. I know the difference between the debug and run buttons in eclipse. My problem is that the run button (green arrow) always starts debug when I want to run my app on my phone. This is only a problems when running on the phone... I can run without debug on an AVD. As I said in my original post, I used to be able to run my app on my phone no without debug... this has only recently become a problem.
TheArchedOne
I've recently tried a couple more things to investigate this... 1. I've tried running other apps from eclipse on my phone and they all work fine, so the problem is specific to my app.2. I've manually created a signed build and installed this on my phone. When I start it, it waits for the debugger to connect.It must be an app build setting or something.Any ideas
TheArchedOne
Check whether you use any of this API: http://developer.android.com/reference/android/os/Debug.html especially waitForDebugger()
Aaron Digulla
+1  A: 

I found someone else reporting the same error

http://osdir.com/ml/AndroidDevelopers/2009-08/msg00603.html

They resolved it with a phone restart.

The same worked for me.... how frustrating!!!!!!

At least its working now.

Massive thanks Aaron Digulla for our help.

TAO

TheArchedOne