OSDN Git Service
Fixing Android Source attachements
Steps to reproduce:
- add Android Source code to android.jar (you can install Android
Sources plugin from http://code.google.com/p/adt-addons/)
- ensure that android.app.ActivityThread exists in the source
attachement (if you use Sources plugin, it exists)
- create an Android application and add the next code to
onCreate method:
super.onCreate(savedInstanceState);
Object obj = null;
System.out.println(obj.toString());
setContentView(R.layout.main);
- set breakpoint at line
System.out.println(obj.toString()); (NPE)
- debug the application
- wait that apps stop on breakpoint
- click Step Over
The procces will proceed in ActivityThread, but source is not shown.
The problem happens because the Android source locator introduced in
https://review.source.android.com/#change,16569 isn't correct.
ActivityThread.java isn't included to android.jar, but can be
included in the source attachement. This change adds source to Android
launch configuration too.
Change-Id: Id13ef9acac9a901a704ae79d3e3db3be5e09d929