我正在使用 Eclipse 在 Mac 上进行开发,并拥有实现标准框架回调(onCreate、onDestroy、onPause 等)的应用程序的框架。当我在回调中设置断点时,调试器会停止并显示一个选项卡,其中显示:
ActivityThread.performLaunchActivity(ActivityThread)
$ActivityRecord,意图)行:2477
在选项卡页主体中,有一些红色文本显示“未找到源”和一个按钮显示“编辑源查找路径...”。
我尝试通过“编辑源查找路径...”添加多个路径,但我似乎找不到 Eclipse 正在寻找的路径。
有人能指出我正确的方向吗?
I am developing on a Mac with Eclipse and have the skeleton for an app that implements the standard framework callbacks (onCreate, onDestroy, onPause, etc..). When I set breakpoints in the callbacks the debugger stops and displays a tab that says:
ActivityThread.performLaunchActivity(ActivityThread
$ActivityRecord,Intent)line:2477
And in the tab page body there is some red text that says "Source not found" and a button that says "Edit Source Lookup Path...".
I have tried adding several paths via "Edit Source Lookup Path..." but I can't seem to find the one Eclipse is looking for.
Can anyone point me in the right direction?
发布评论
评论(2)
听起来你的程序已经停止在 Android 代码中了。通常这些内部错误(空指针等)是由代码中的错误引起的,但错误报告不存在,而是发生内部崩溃。
不过,有时查看 Android 源代码会很有帮助。这可以很容易地完成。
It sounds like your program has stopped inside Android code. Often these internal errors (null pointers etc) are caused by a mistake in your code, but the error reporting isn't there, instead you get an internal crash.
However it can help a lot sometimes to view the Android source code. This can be done fairly easily.
当您尝试调试/运行时,它将重定向到“编辑源查找”页面。此时,我们需要通过单击“添加”按钮(Java项目)指向java源代码,
请参阅屏幕截图
When you try to debug/run , it will redirect to Edit Source Lookup page.At this time, we need to point to the java source code by clicking on Add button (Java Project)
Refer the screenshot