Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debug Android library project with java source code

I followed the following tutorial http://developer.android.com/guide/developing/projects/projects-eclipse.html

and I have 2 projects : the starter project and the library project. Most of the source code is located into the library project

When I debug the android application and when I place a breakpoint into the java, the breakpoint work but it jump in the class file located in Library project folder (of the starter project).

I would like to stop in the java code, so I don't have to switch between the source and the compiled code and so modify the source. Is it possible ?

regards

like image 487
P. Sohm Avatar asked Feb 22 '12 21:02

P. Sohm


1 Answers

Here is what worked for me: (After having clicked debug at least once before)

  • Open the debug view in eclipse (use the menu at the top: Window -> Show View -> Debug)
  • Right click one of the activities in the debug window "Edit source lookup"
  • Click "Add"
  • Select "Java Project"
  • Check the box for the Android Library project
  • Press OK
like image 73
jhnclvr Avatar answered Oct 08 '22 05:10

jhnclvr