Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6170997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:08:12+00:00 2026-05-23T23:08:12+00:00

When I try to debug an Android app with NetBeans and the nbandroid plugin,

  • 0

When I try to debug an Android app with NetBeans and the nbandroid plugin, it starts the emulator, and eventually when the emulator comes up it says

Waiting For Debugger
Application [app name] ([package name]) is waiting for the debugger to attach.

and I get a Force Close button.

Here is the log from DDMS.

01-14 11:44:46.131: INFO/ActivityManager(85): Force stopping package [packagename] uid=-1
01-14 11:44:46.131: INFO/ActivityManager(85): Starting activity: Intent { flg=0x10000000 cmp=[packagename]/.[activityclassname] }
01-14 11:44:46.311: DEBUG/AndroidRuntime(420): Shutting down VM
01-14 11:44:46.331: DEBUG/jdwp(420): adbd disconnected
01-14 11:44:46.371: INFO/AndroidRuntime(420): NOTE: attach of thread 'Binder Thread #3' failed
01-14 11:44:46.411: INFO/ActivityManager(85): Start proc [packagename] for activity [packagename]/.[activityclassname]: pid=427 uid=10032 gids={3003}
01-14 11:44:47.200: WARN/ActivityThread(427): Application [packagename] is waiting for the debugger on port 8100...
01-14 11:44:47.231: INFO/System.out(427): Sending WAIT chunk
01-14 11:44:50.280: DEBUG/SntpClient(85): request time failed: java.net.SocketException: Address family not supported by protocol
01-14 11:44:56.253: WARN/ActivityManager(85): Launch timeout has expired, giving up wake lock!
01-14 11:44:57.003: WARN/ActivityManager(85): Activity idle timeout for HistoryRecord{43f85578 [packagename]/.[activityclassname]}
01-14 11:45:05.350: DEBUG/dalvikvm(166): GC_EXPLICIT freed 595 objects / 29656 bytes in 120ms
01-14 11:45:10.320: DEBUG/dalvikvm(228): GC_EXPLICIT freed 190 objects / 13056 bytes in 92ms
01-14 11:45:15.331: DEBUG/dalvikvm(304): GC_EXPLICIT freed 277 objects / 13112 bytes in 92ms
01-14 11:45:20.401: DEBUG/dalvikvm(162): GC_EXPLICIT freed 586 objects / 32240 bytes in 109ms
01-14 11:47:05.161: DEBUG/dalvikvm(162): GC_EXPLICIT freed 49 objects / 2704 bytes in 93ms
01-14 11:49:05.201: DEBUG/dalvikvm(162): GC_EXPLICIT freed 15 objects / 600 bytes in 130ms
01-14 11:49:47.595: INFO/jdwp(85): Ignoring second debugger -- accepting and dropping
01-14 11:49:47.710: INFO/jdwp(155): Ignoring second debugger -- accepting and dropping
01-14 11:49:47.740: INFO/jdwp(160): Ignoring second debugger -- accepting and dropping
01-14 11:49:47.750: INFO/jdwp(162): Ignoring second debugger -- accepting and dropping
01-14 11:49:47.772: INFO/jdwp(166): Ignoring second debugger -- accepting and dropping
01-14 11:49:47.810: INFO/jdwp(194): Ignoring second debugger -- accepting and dropping
01-14 11:49:47.820: INFO/jdwp(224): Ignoring second debugger -- accepting and dropping
01-14 11:49:47.861: INFO/jdwp(228): Ignoring second debugger -- accepting and dropping
01-14 11:49:47.872: INFO/jdwp(242): Ignoring second debugger -- accepting and dropping
01-14 11:49:47.880: INFO/jdwp(271): Ignoring second debugger -- accepting and dropping
01-14 11:49:47.980: INFO/jdwp(427): Ignoring second debugger -- accepting and dropping
01-14 11:49:47.980: INFO/jdwp(304): Ignoring second debugger -- accepting and dropping
01-14 11:49:47.980: INFO/jdwp(337): Ignoring second debugger -- accepting and dropping
01-14 11:49:48.020: INFO/jdwp(293): Ignoring second debugger -- accepting and dropping
01-14 11:49:50.290: DEBUG/SntpClient(85): request time failed: java.net.SocketException: Address family not supported by protocol
01-14 11:50:10.970: DEBUG/Email(271): *** synchronizeMailboxGeneric ***
01-14 11:50:11.250: DEBUG/dalvikvm(271): GC_FOR_MALLOC freed 9369 objects / 455104 bytes in 126ms
01-14 11:51:05.171: DEBUG/dalvikvm(162): GC_EXPLICIT freed 15 objects / 600 bytes in 90ms
01-14 11:53:05.180: DEBUG/dalvikvm(162): GC_EXPLICIT freed 15 objects / 600 bytes in 95ms
01-14 11:54:50.293: DEBUG/SntpClient(85): request time failed: java.net.SocketException: Address family not supported by protocol

Here is the NetBeans ant log

init:
deps-jar:
Compiling 1 source file to C:\[apppath]\build\classes
compile:
Updating zip: C:\[apppath]\dist\[appname].apk_

THIS TOOL IS DEPRECATED. See --help for more information.

Deleting: C:\[appdir]\dist\[appname].apk_
Deleting: C:\[apppath]\dist\[appname].apk__
Building zip: C:\[apppath].zip
jar:
        pkg: /data/local/tmp/[appname].apk
Success
569 KB/s (275945 bytes in 0.473s)
About to start [packagename]/[packagename].[activityclassname]
Starting: Intent { cmp=[packagenamel]/.[activityclassname] }

NetBeans tells me the process is still running and gives me a stop button to ‘kill’ if I want.

Also my CPU and disk are mostly idle.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T23:08:13+00:00Added an answer on May 23, 2026 at 11:08 pm

    I ran into this problem as well. You have to manually attach the debugger while the emulator says “Waiting for debugger to attach”. In Netbean’s menu bar, click “Debug”, then “Attach Debugger…”. You have to select your package from the “Process” drop down list, and then click “Attach”. That should do it.

    This works in Netbeans 7 anyway.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to debug my application on my Android phone. However the app itself
When i try to debug my webapp it starts up the tomcat server and
I'm trying to debug and step through an Android application that segfaults. I've tried
I have include Google map view in my android application. When I debug with
I have an android app as client and a rails REST webservice .Rails application
I can run and debug my Android app on my phone just fine, most
I am trying to test in-app billing in my Android application. The problem is,
i try to debug a windows gadget. Just-In-Time debugging fires up and i can
When I try to debug the following function segment, the execution brakes (jumps out
I try to use the winDBG to debug a dump file. When I run

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.