aligf
aligf

Reputation: 2060

How to step into Android OS's source code when debugging?

Is there a way to step into system calls when debugging an Android app on eclipse?

Maybe a similar way to how source code of a JAR library can be pointed to in eclipse and debugging would be possible on the library code. The difference is that Android's system libraries are not compiled with the Android app so I'm not sure how and where to tell eclipse: "here is Android's source code. Find your way in it.".

Upvotes: 4

Views: 3817

Answers (2)

Stark
Stark

Reputation: 2621

  1. In your Android SDK Manager, check and download "Sources for SDK" for the target platform you are working on.
  2. When you get an error in Eclipse and the debugging perspective pops up, click on "attach source" and choose "external folder". Navigate to ur android-sdk/sources/ and select the folder corresponding to the platform.

Is this what are you looking for?

Upvotes: 8

Related Questions