Pnz*_*nzr 3 eclipse debugging android android-intent
我正在使用Eclipse并且有一个运行Android 2.1和我的IntentService的模拟器.我想逐步完成onHandleIntent()重写函数.我在函数的第一个语句中放入了一个断点,它是Context context = getBaseContext();. 当调用intent时,程序失败并且不会进入Eclipse中的调试视图.
Gop*_*ath 8
android.os.Debug.waitForDebugger();在intentservice代码中的断点之前添加语句.
android.os.Debug.waitForDebugger();
这对我有用.
归档时间:
15 年,6 月 前
查看次数:
3817 次
最近记录:
14 年,11 月 前