开发者

how to look at debugging error in android.(eclipse)? [closed]

开发者 https://www.devze.com 2023-03-01 07:11 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot开发者_JS百科 be reasonably answered in its current form. F
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot开发者_JS百科 be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.

Hi friends i am new for android application..how to check debugging errors in android(eclipse) please help me.....


You can get all the debugging details from the Logcat. Just open Window-->Open Perspective-->DDMS then again open Window-->Show View-->LogCat


I prefer reading the stack tree from logcat.

You open the logcat tab by doing:

Window -> Show View -> Other -> LogCat (from the list).

When you have the logcat up, you can click on the circle with a red E in the middle in the window's top right corner. This will filter the logcat messages to only show error messages.

But be warned, some stack trees give you incorrect information sometimes(example: last night, I had a nullpointerexception thrown because a thread hadn't initiated something. It referred me to a code-comment...). But I'm not whining, logcat is great!

0

精彩评论

暂无评论...
验证码 换一张
取 消