Eclipse: “Edit Source Lookup Path…”

為{幸葍}努か 提交于 2019-12-10 09:44:19

问题


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?


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/2565279/eclipse-edit-source-lookup-path

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!