mbm
mbm

Reputation: 31

Debugging Android in Eclipse - 'step-into' jumps to wrong line number

I'm using the debugger in Eclipse to trace the execution of a an Android App, however when I try to step-into, either an Android or a Java, class the debugger doesn't step-into the correct method.

I'm using the following code:

String irlCode = new String("+353");
String fullNumber = irlCode.concat(phoneNoStr);
Log.d(TAG, fullNumber);

Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse("tel:" + phoneNoStr));
startActivity(callIntent);  

When I step-into irlCode.concat(phoneNoStr); or startActivity(callIntent); the debugger doesn't step-into the correct method. I does step-into String.class in the 1st case and into Android.class in the 2nd case, but it never steps-into the correct method, it steps-into a different line of code in either case.

Any help would be appreciated.

Upvotes: 3

Views: 2023

Answers (1)

Valentin Grégoire
Valentin Grégoire

Reputation: 1150

This means that the code you are running differs from the source code you have. I think you are using an older version of android to program. If you check your project properties, are you then using the newest version of android? Also, this might help you: Eclipse debugger runs wrong version of code

Upvotes: 1

Related Questions