简体   繁体   English

如何在Android应用中使用Eclipse调试器?

[英]How to use Eclipse debugger in Android app?

I'm not really experienced in working with eclipse and it's debugger seems to be extremely lame in comparison with Visual Studio's. 我对Eclipse的使用经验不是很丰富,与Visual Studio相比,它的调试器似乎非常extremely脚。 In this question I included a screenshot of my debug perspective after some error occurred. 在此问题中,我包括发生某些错误后的调试透视图的屏幕截图。 Visual Studio (of course not in an Android project) always gives me some useful information or at least names the error. Visual Studio(当然不在Android项目中)总是为我提供一些有用的信息,或者至少为错误命名。 But here in eclipse I honestly see no useful information - only the line which caused the error after calling a chain of methods. 但是老实说,在eclipse中我看不到任何有用的信息-只是在调用方法链后导致错误的那一行。 Am I missing something? 我想念什么吗? Should I open another window? 我应该打开另一个窗口吗? Which information should lead me to the error? 哪些信息应该导致我出错?

在此处输入图片说明

Use LogCat, Luke. 使用LogCat,Luke。 Window-Show view - Android- LogCat 窗口显示视图-Android- LogCat

EDIT as I see, you already have it. 编辑我明白了,你已经拥有了它。 Just double click windows which shows you blue-green-red lines. 只需双击显示蓝绿色红线的窗口。 Exceptions will be there. 例外将在那里。

I prefer DDMS (it includes logcat) and it gives you much more information. 我更喜欢DDMS(它包括logcat),它为您提供了更多信息。 You can open the perspective from Eclipse. 您可以从Eclipse打开透视图。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM