Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
2
Question by newsdu · Aug 19, 2015 at 12:48 PM · androidmonodevelopdebuggingdeviceattach

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

Hi, I trying to debug script in android device, but it is not working for me now.

Introduce my environment,

  • OS : Windows 7 64bit Professional K

  • Engine Version : Unity3d 4.6.6p4

  • Router : ipTIME N6004R

  • Android Device : Samsung Galaxy Note2 (SHV-E250S)

  • Android Version : 4.4.2 (Kikat)

  • Andoird Setting : USB debugging check, Allow mock location check.


And my steps,

  1. Build APK in Unity with enable flags 'Development Build' and 'Script Debugging'.

  2. Install APK to mobile device. (Copy apk to device and install).

  3. Connect network PC(lan cable) and Mobile(wifi) on same router.

  4. Connect mobile device to PC through USB cable.

  5. 'adb tcpip 5555' and output 'restarting in TCP mode port: 5555'.

  6. Disconnect mobile device from PC (Disconnect USB).

  7. 'adb connect 192.168.0.7' and output 'connected 192.168.0.7:5555'.

  8. 'adb devices' and output '192.168.0.7:5555 device'.

  9. Run game in mobile device.

  10. Open project in MonoDevelop, Execute 'Run - Attach to Process'.

  11. I can see 'Android:SHV-250S:192.168.0.7:5555' in process dropdown list.

  12. Trying to attach to this, but always fail. It shows popup 'Could not connect to debugger'.


What's wrong in my steps? What's missing in my steps?

Firewall problem?

Router setting problem?

Android setting problem?

MonoDevelop setting problem?

Please help me anyone T.T

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 v01pe_ · Mar 14, 2017 at 12:53 PM 0
Share

I have the same problem :(

0 Replies

· Add your reply
  • Sort: 

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Failed to Android Debug on Mac 0 Answers

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

MonoDevelop unable to attach to Android device 0 Answers

deviceUniqueIdentifier 1 Answer

How to debug/test game on device while PC's Console displays real-time information 1 Answer


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