public class Main extends Activity {
int field = 0;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
int local = 0;
field = local;
local = field;
}
}
I've put "watchpoint" on "field" and in "Breakpoint Properties" I confirmed that both access and modification are being watched. But the watchpoint didn't trigger the debugger to pause execution of program. Tried both in 2.2 AVD and on Desire with USB Debugging enabled. Anyone has 开发者_高级运维experience on how watchpoint works with Android?
Thanks, Ryan
I can't find an official google source that says that it does not work. However I keep finding mirrors of this document http://www.milk.com/kodebase/dalvik-docs-mirror/docs/debugger.html which says
Known Issues and Limitations - Most of the optional features JDWP allows are not implemented. These include field access watchpoints and better tracking of monitors.
精彩评论