Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

debugging android app via eclipse on bluestacks app player

I have read a few articles that BlueStacks App Player can be used to debug android apps via Eclipse, instead of the default android emulator. Example article

But I think this refers to the Windows version, I was unable to get to it work on MacOS. Does anyone know how to debug using BlueStacks/eclipse on MAC?

like image 308
Sagi Mann Avatar asked Aug 10 '12 10:08

Sagi Mann


People also ask

Can you debug in BlueStacks?

6) Under Android Application select your configuration or create a new one. On the Target tab choose Always prompt to pick device After this, select Apply then Debug . 7) Then select BlueStacks emulator in the prompt window, and finally select OK .

How do I enable USB debugging on BlueStacks?

Ensure that you have enable "Enable Android Debug Bridge (ADB) in the emulator preferences. open platform tools folder path: Click on address bar, alternatively press Alt + D. Now when address bar is highlighted, type cmd in the bar. Press Enter key.


3 Answers

adb connect localhost:10001 

should do the trick.

like image 76
Ambreesh Bangur Avatar answered Sep 30 '22 13:09

Ambreesh Bangur


Well, you can try another way:

1) First, open the DDMS via Window->Open Perspective->DDMS under Eclipse.

2) Then open BlueStacks App Player.(leave it opens)

3) After that switch back to Eclipse and you should notice there're two emulator under the Device tab. enter image description here

Then click Reset adb under the small triangle at the Device tab. enter image description here

After a few seconds, the another one emulator will disappear and you can proceed to the next step. enter image description here

4) Then return back through Window->Open Perspective->Java under Eclipse.

5) Select your project and right click on it, choose Debug As->Debug Configurations enter image description here

6) Under Android Application select your configuration or create a new one. On the Target tab choose Always prompt to pick deviceAfter this, select Apply then Debug. enter image description here

7) Then select BlueStacks emulator in the prompt window, and finally select OK.

Alternatively, you can also open the BlueStacks App Player before Eclipse using the above steps(with minor changes).

For more info, visit the below links.(However, in Chinese...)

http://www.cnblogs.com/hbbbs/archive/2012/10/30/2746950.html http://www.cnblogs.com/hbbbs/archive/2012/10/30/2746979.html

Hopefully this will help you.

like image 30
Herks Avatar answered Sep 30 '22 15:09

Herks


C:\>cd Program Files (x86)\Android\android-sdk\platform-tools

C:\Program Files (x86)\Android\android-sdk\platform-tools>adb connect 127.0.0.1:5555
connected to 127.0.0.1:5555

C:\Program Files (x86)\Android\android-sdk\platform-tools>
like image 42
Ait Friha Zaid Avatar answered Sep 30 '22 15:09

Ait Friha Zaid