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 /
  • Help Room /
avatar image
2
Question by sckyj · Mar 14, 2016 at 01:22 PM · androidvisual studiodebugging

how can i attach visual studio debug under android

hi, i have a question about debugging with visual studio.

first, sorry about my poor english.

i followed construction in below page. https://docs.unity3d.com/Manual/AttachingMonoDevelopDebuggerToAnAndroidDevice.html

  1. my develop machine & mobile within same router and i disable all firewall in my windows

  2. "adb devices" command shows me mobile successfully attached alt text

  3. Execute Build & Run command in Unity and successfully deploy the game to mobile.

  4. "Attach Unity Debugger" in Visual studio shows me my phone is connected with. alt text

  5. i can choose "Attach to Unity - My Phone@IP:56012" in Visual Studio toolbar.

  6. and i start debugging BUT NOTHING HAPPEN.( maybe visual studio can not connect with unity debugger )

  7. also i checked with mono develop

  8. "Run > Attach Process" menu have my mobile information

  9. choose my mobile and play but mono develop can not connect with debugger too.

i think problem is

  1. "Attach to Unity - My Phone@IP:5555" is right but my visual studio show me "Attach to Unity - My Phone@IP:56012". is that correct?

  2. my router does not have MULTICAST option. so i think multicast doesn't work for me.

if anyone have ideas about this problem it will be so great for me.

This is my develop environment - windows 10, visual studio 2015, Unity 5.3.3f1 PERSONAL

screenshot2.png (6.4 kB)
screenshot1.png (2.0 kB)
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 M-Hanssen · Jun 07, 2017 at 07:42 AM 0
Share

Bump We have exactly the same problem! Any thoughts on this? Anyone?

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by sckyj · Mar 27, 2016 at 12:28 PM

Does anyone have any idea? i spent lots of my time for this.

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
avatar image
0

Answer by YangTingWei · Sep 28, 2018 at 07:40 AM

You can close your windows fire defense.

Then you can use usb debugging.(With Build setting : Develope Build and scripting)

In VS Attach Unity Debug can see the list when you lunch the APK.

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

67 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 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 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Visual Studio has stopped listing my Android device for debugging 1 Answer

Cant change debugger execution line while debug 1 Answer

In visual studio, attach to unity is not working 1 Answer

Unity3d - Attach to Unity not working 3 Answers

Unity 5.1.1 is skipping code lines 0 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