views:

33

answers:

2

Hi All,
I set my android emulator to wait for the debugger for my application, so when it starts, the emulator waits writing in output log "waiting for debugger on port 8100".

But, I can't find a way to attach the Netbeans debugger to this port nor to the emulator in general...

Please help,
Alban.

A: 

What environment are you using to develop your app? Are you using Netbeans to develop for Android? Did you get one of those plugins like nbandroid?

EboMike
We use Netbeans. But we cannot use nbandroid because we work with maven and I did not find how to nbandroid project with a maven structure.I already experiment that the project generated by nbandroid can be debugged in the emulator. But I can't find a way to do the same with a non-nbandroid project...
Alban Soupper
Are you using maven-android-plugin? You will need *some* sort of plug-in to communicate with Android.
EboMike
A: 

There is an item in the Debug menu, labelled 'Attach Debugger...'

This item opens a dialog that lets you provide connection details.

Since multiple debuggers are supported, you may need to explicitly select the 'right debugger', which I assume is the Java Debugger.

There are a couple of gotchas that you might run into:

The Debugger may not have been activated. Open the Plugins dialog (Tools->Plugins) and activate the plugins in the 'Java SE' category are all activated.

The project that starts the emulator may not be debuggable. See this question and answer for more info.

vkraemer
Effectively, but I can't find the correct port, connection mode, etc.Do I have to launch ddms?
Alban Soupper