user940016
user940016

Reputation: 2938

Break points in Android

I marked a few break points and launched the debugger, but after the application is installed, the break points don't get the "v" sign, and the debugger doesn't seem to stop when reaching to them! I really don't know what I'm missing here. Could it be related to the fact that it's an app widget application? I didn't have this issue with other applications... I'm using the emulator, if it matters somehow. Thanks.

Upvotes: 1

Views: 193

Answers (2)

Torid
Torid

Reputation: 4196

Check that you do not have "Skip all breakpoints" set in Eclipse. Run -> Skip All Breakpoints. If that is set, Eclipse allows you to set breakpoints, but does not stop at them.

Upvotes: 0

slybloty
slybloty

Reputation: 6506

Is your application set to false for debuggable in your manifest? It shouldn't be in there at all or set to true.

<application android:debuggable="true" >

Also try to use this in the onEnabled():

android.os.Debug.waitForDebugger();

Another way could be by using the DDMS perspective and selecting the widget from the list of processes.

This link might be helpful as well.

Upvotes: 1

Related Questions