Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by kc_wired · May 15, 2013 at 01:31 AM · androidmonodevelopdebugging

MonoDevelop Debugging of Android Player: How to Attach to Process of Android Device/Application

Unity v4.1.2 Pro with Android support.
Android SDK v4.2.2 Jelly Bean.
MonoDevelop v2.8.2 (Unity)

  1. Can successfully build, run, debug Unity Editor

  2. Can successfully connect to my various Android Devices ( GalaxyNexus, Nexus7, Nexus10 ) via USB debugging & ADB.

  3. Can successfully connect and run Unity Profiling via USB debugging & ADB.

  4. Can successfully Build & Run a test.apk on each device.

  5. CANNOT attach to the process in MonoDevelop to debug. Starting MonoDevelop and opening "Attach to Process" dialog, shows no "Android*" device/application process to attach to. Only see "Unity Editor".

  6. Note*, can successfully use Unity Remote as well via USB Debugging & ADB.

Is it only possible to debug Android applications via WiFi?

Any insight would be much appreciated.

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Marzoa · Oct 17, 2014 at 12:08 AM 0
Share

Same problem here. $$anonymous$$y Nexus 5 is not visible at all for $$anonymous$$onoDevelop, nor in USB mode neither in WiFi, despite adb see it without problem in both cases.

However, $$anonymous$$onoDevelop does see an emulator running, but when you try to attach such device $$anonymous$$onoDevelop says that it couldn't attach it after a long pause.

Did you manage to solve it?

2 Replies

· Add your reply
  • Sort: 
avatar image
6

Answer by kc_wired · Jun 19, 2013 at 11:29 PM

I contacted Unity Technical Support. Apparently, Unity Script Debugging on Android with MonoDevelop is only supported via WiFi. It is not possible via USB Cable.

  1. Open TCPIP port for ADB WiFi serving

>adb tcpip 55555 2. Connect to Android device via WiFi

>adb connect 3. Android device should then appear: - Unity Profiler -> Active Profiler as AndroidPlayer - MonoDevelop -> Attach to Process as AndroidPlayer

Comment
Add comment · Show 6 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image tyoc213 · May 08, 2014 at 03:36 PM 0
Share

I connected first my android (by USB) device then

  1. adb tcpip 8989

  2. adb connect 192.168.1.67:8989

But even I get the message "restarting in TCP mode port: 8989" from adb I can't connect unable to connect to 192.168.1.67:8989, a telnet and a scan port on the IP of my device doesn't show that 8989 is open.

I can ping ping 192.168.1.67 and get a pong.

Android version 2.3.7 not rooted device.

avatar image deiong · Jun 12, 2014 at 02:33 AM 0
Share

doesn't work

avatar image Marzoa · Oct 17, 2014 at 12:09 AM 0
Share

Profiler is only available for Pro version, and anyway it shouldn't be needed for step by step debugging.

avatar image Marzoa · Oct 17, 2014 at 12:19 AM 0
Share

This doesn't work for me. With an actual device, the device is not shown at all in $$anonymous$$ono's debugger targets. With an emulator the device is shown, but it will end saying it couldn't connect to the device after a long pause. So far I haven't figure out what's wrong, despite I have wasted a whole afternoon trying to make this work.

avatar image meat5000 ♦ · Jul 27, 2015 at 01:03 PM 0
Share

Try 5555 ins$$anonymous$$d of 55555

Unplug your USB cable and disable other data on device.

Show more comments
avatar image
0

Answer by Mimoza Lladrovci · Feb 16, 2016 at 04:34 PM

You have to allow MonoDevelop to communicate through Windows Firewall. Go to Control Panel\System and Security\Windows Firewall\Allowed Programs and change the settings for MonoDevelop. The device will appear right away if the rest of the steps are completed successfully.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

19 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

'Attach to process'(to android device) is always fail in MonoDevelop. 0 Answers

MonoDevelop unable to attach to Android device 0 Answers

Android debugging - What to look for ? 1 Answer

Properly debug Gear VR apps 1 Answer

Breakpoints stopped triggering in MonoDevelop 4.0.1 4 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges