Hello World Tutorial - Using the Debug Perspective

2019-05-29 20:32发布

问题:

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

"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]Can't bind to local 8617 for debugger

and finally this...

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

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.

Thanks

回答1:

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?



回答2:

Is debbing set to true in your manifest?