Cannot use F5 to enter function when debugging on Eclipse

Sometimes (in about 50% of cases) when debugging an Android application to enter a function, I use F5 (F6 for this), but it does nothing

Sometimes, none of the usual debugging keys work (F5, F6, F7, F8, maybe others that I don’t know about either).

Currently, the only way to overcome this is to select the current thread from the Debug view (which shows the current stack of each thread), and then press F5. When the situation is even worse (for example, you cannot use content support), I restart eclipse.

Speaking of threads, I noticed that if I have many threads, sometimes when I try to move on, it switches to another thread, and it is annoying when I lose the concentration that I had in the current thread. I know this makes sense, but it is really annoying, especially when you consider that there are several threads.

Why are these things happening, and how can I fix them?

Note. I have the latest version of Eclipse, ADT and Android SDK. The problem occurs on both devices and emulators.

+5
source share
5 answers

You cannot control the execution pattern of threads, since they do not start sequentially, but the debugger does.

, .

:

  • , , ,
  • android.os.Debug.waitForDebugger(); . . .

, , .

, Eclipse, - , . Visual Studio .

+4

reset ( -, ).

Debug:

  • ( "" Eclipse) "Reset"

  • Window->Reset Perspective...

+2

(F5, F6, F7, F8, , , ).

, . .

(, ), eclipse.

. , . , eclipse . , , . . , eclipse, .

eclipse, backspace, . , eclipse ( , ). , .

, , , , , , , , .

. , . Eclipse . - Java Eclipse?. , , .

+1

, , Debug Step Filters Eclipse. . , -, , , :

Java Eclipse, "Step Filter".

  • Windows → → Java → → .
  • " ".
  • . , .
  • "".

, .

0

In my case, the keys are assigned to do something that is not related to android studio, to increase the volume, for example, so that I reconfigure the file / settings / layout to reconfigure what the key is.

0
source

All Articles