2
I’m having a problem trying to debug an Android application in Eclipse. When I press F5, F6 or F8, simply the break point line does not pass to the next instruction (line), it is stopped. I had already used the Eclipse Debug and had never had problems.
Look at the screen image of my Eclipse and the code I’m trying to debug. I tried to summarize, but even so break point does not advance to next line.
void init(){
txtFrequencia = (EditText) findViewById(R.id.editText_Frequencia);
txtQuantidade = (EditText)findViewById(R.id.editText_Quantidade);
txtIntervalo = (EditText)findViewById(R.id.editText_Intervalo);
txtNomeMedicamento = (EditText)findViewById(R.id.editText_NomeMedicamento);
tmpInicioTratamento = (TimePicker)findViewById(R.id.timePicker_InicioTratamento);
spnTipoDosagem = (Spinner)findViewById(R.id.spinner_TipoDosagem);
btnSalvar = (Button)findViewById(R.id.button_salvar_agenda);
toast = Toast.makeText(this.getApplicationContext(), "Você Apertou o Botão", Toast.LENGTH_SHORT);
btnSalvar.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
add();
}
});
}
Note: I have tested in two versions of Eclipse and I am using Windows 8 64 bits
Take a look at the Debug tab, there are the Threads that are running. See if you have any with a pause. If you have this could be the problem.
– Edgar Muniz Berlinck
How do I fix this? Actually the thread is Suspended
– Michel Lobo
Right-click and select Resume.
– Edgar Muniz Berlinck
I tried to summarize, but when I hit F5, F6 etc the break point does not change line.
– Michel Lobo
See if this helps: http://stackoverflow.com/questions/8551818/how-to-debug-android-application-line-by-line-using-eclipse
– Edgar Muniz Berlinck
@user5172 Remember that if you want to say more about your problem (such as the code example you posted) edit your question is always better than adding an answer. It’s the best way to ensure that everyone will read. Welcome to SOPT :)
– Gabe
I’ve tried everything already. What I’m now believing this may be an ADT bug or has something to do with the version of the Android app I’m creating. I will create a new application with a lower version to test. I let everyone know about the result.
– Michel Lobo