的Hello World教程 - 使用Debug透视图透视图、教程、Hello、World

2023-09-06 22:10:53 作者:国际女流氓

我刚刚开始通过教程去,但似乎遇到一些麻烦以下部分:

I've just started going through the tutorials but seem to be having some trouble with the following portion:

运行>调试历史>您好,Android的从菜单进入调试模式。您的应用程序将在仿真器重新启动,但这次将暂停,当它达到你设置的断点。然后,您可以通过$ C步骤在Eclipse的Debug透视$ C,就像你会为任何其他应用程序。

"Run > Debug History > Hello, Android from the menu to enter debug mode. Your app will restart in the emulator, but this time it will suspend when it reaches the breakpoint you set. You can then step through the code in Eclipse's Debug Perspective, just as you would for any other application."

当我按照这些指示我看到这样的警告名单...

when I follow these instructions I see a list of warnings like this...

[2010-11-24 15点39分43秒 - DDMS]无法绑定到本地为8617调试器

[2010-11-24 15:39:43 - ddms]Can't bind to local 8617 for debugger

最后这...

[2010-11-24 16点08分25秒 - HelloAndroidWeb]启动错误:无法连接到远程VM。连接被拒绝。

[2010-11-24 16:08:25 - HelloAndroidWeb] Launch error: Failed to connect to remote VM. Connection refused.

我从来没有使用调试器之前,但通过阅读我期待有一个新窗口中打开(调试透视)的tutorail,但这种情况并非如此。有我没有什么不对的安装/安装过程中。

I've never used a debugger before but from reading the tutorail I expect a new window to open (the Debug Perspective), but this is not the case. Have I dont something wrong in during installation/setup.

感谢

推荐答案

是模拟器或连接的设备运行的应用程序?如果一台设备上,USB调试模式需要通过设置菜单中启用。如果在模拟器中,你可能需要重新启动才能重新安装调试器(ADB)。

Is the application running on the emulator or an attached device? If on a device, USB Debugging mode needs to be enable through the setup menu. If in the emulator, you may have to restart it in order to reattach the debugger (ADB).

在设备面板中,你看到运行的活动进程的列表?您可以选择您的应用程序,然后单击调试选择进程的图标?

In the 'Devices' panel do you see the list of active processes running? Can you select your application and click on the 'Debug select process' icon?