DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page Debugger Android Not Working
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jun 2009
Default Debugger Android Not Working - 06-14-2009, 04:39 PM

I am using the android 1.5 and have compiled and run the Snake sample
application on the Emulator, using Eclipse 3.41 to launch it. When I try
to debug it using the Eclipse environment I get the error:

"Launch error: Failed to connect to remote VM. Connection refused."

I do have the AndroidManifest.xml debuggable=true set and i went into
the emulator and set Dev Tools > Development Settings> and checked
"Wait for debugger", and added the snake app to the Debug App. So not
sure what else to do to get it to work. I also turned off my firewall
just in case too.

Here is my log for the launch:

2009-06-10 17:02:44 - Android_Snake] Android Launch!
[2009-06-10 17:02:44 - Android_Snake] adb is running normally.
[2009-06-10 17:02:44 - Android_Snake] Performing com.example.android.snake.Snake activity launch
[2009-06-10 17:02:44 - Android_Snake] Automatic Target Mode: Preferred AVD 'Cell15' is available on emulator 'emulator-5554'
[2009-06-10 17:02:44 - Android_Snake] WARNING: Application does not specify an API level requirement!
[2009-06-10 17:02:45 - Android_Snake] Device API version is 3 (Android 1.5)
[2009-06-10 17:02:45 - Android_Snake] Application already deployed. No need to reinstall.
[2009-06-10 17:02:45 - Android_Snake] Starting activity com.example.android.snake.Snake on device
[2009-06-10 17:02:46 - Android_Snake] ActivityManager: Starting: Intent { comp={com.example.android.snake/com.example.android.snake.Snake} }
[2009-06-10 17:02:47 - Android_Snake] Attempting to connect debugger to 'com.example.android.snake' on port 8616
[2009-06-10 17:02:48 - Android_Snake] Launch error: Failed to connect to remote VM. Connection refused.

Thanks in advance for any help.

John
Reply With Quote
  (#2 (permalink)) Old
Member
 
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jun 2009
Default 06-14-2009, 04:47 PM

Actually I found the answer, so anyone with the same issues may find this useful. My error was caused by the localhost not being defined in:

C:\WINDOWS\system32\drivers\etc

And should contain this line :
127.0.0.1 localhost

Putting this line back allow me to debug.

Hope this helps.

Cheers,

John
Reply With Quote
Reply

Tags
android, connection, debug, refused, snake

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to install Zend Debugger JonoB Eclipse 0 05-18-2009 08:27 AM
pydev - debugger is not debugging hellbike Eclipse 0 03-19-2009 03:54 PM
CDT Getting debugger to work with Unittests++ scrier Eclipse 0 03-05-2009 03:29 AM
Download not working lutherbaker Refcardz 0 02-18-2009 03:37 AM
Working with output nightspiders Java 0 03-23-2008 10:15 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com