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 wijesijp · Jun 27, 2016 at 05:52 PM · debuggingunityvs

Visual studio Attach to Unity does not work

I am using Unity 5.3.4f1 free version

I have VS 2015

Also installed Visual studio 2015 tools for unity

I imported UnityVS into my game.

Target Platform Windows x86

When I pressed "Attach to Unity" button normally it starts debugging, now it does not.

Any ideas how I can get the project to debug ?

Comment
Add comment · Show 10
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 teicher · Jun 27, 2016 at 10:18 PM 0
Share

I'm also seeing this issue. It was working fine for me until today. I installed Visual Studio 2015 Update 3 today, so I wonder if the Update 3 is causing an issue.

avatar image toromano · Jun 28, 2016 at 05:52 AM 0
Share

You might try to attach to Unity process manually

avatar image wijesijp toromano · Jun 28, 2016 at 08:20 AM 0
Share

I tried it but it does not work

avatar image narendra_mm wijesijp · Jun 28, 2016 at 01:59 PM 0
Share

@wijesjp Did you check "Attach to Unity and Play"? That might work

Show more comments
Show more comments
avatar image teicher toromano · Jun 28, 2016 at 05:38 PM 0
Share

I've tried all the options that I see in Visual Studio, including from the Debug menu -> Attach Unity Debugger. When I try to attach, VS is ins$$anonymous$$d building the project and not attaching.

Have you all been able to Debug using the latest update for Visual Studio 2015 - Update 3? I believe it was just released yesterday.

avatar image wijesijp teicher · Jun 28, 2016 at 08:50 PM 0
Share

I don't think I updated

seems this is a known issue as listed here https://visualstudiogallery.msdn.microsoft.com/8d26236e-4a64-4d64-8486-7df95156aba9

If you updated it could defiantly caused this

Show more comments

3 Replies

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by wijesijp · Jun 28, 2016 at 09:00 PM

seems this is a known issue as listed here;

https://visualstudiogallery.msdn.microsoft.com/8d26236e-4a64-4d64-8486-7df95156aba9

seems we need a new get an update of VS tools for Unity to fix this. The version I had was 2.2.0.0 i think.

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
2

Answer by jorjdboss · Aug 26, 2016 at 08:35 PM

I've been digging around trying to get Unity and VS2015 to work well together(finally!).

I'm assuming you have VS Tools 2.3

At first I could only get debugging working by using Debug > Attach to Unity Debugger Was annoying to do this every time! F5 is so much more convenient

In Unity's build settings, I checked Development Build and Copy PDB files(not sure if this makes a difference)

Then Assets > Open C# Project and Bam! The default debug option will say "Attach to Unity". I changed this to "Attach to Unity and Play"

Also, you can turn off Development Build after this works.

Debugging hasn't been so awesome before!

@wijesijp

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
-1

Answer by U3Dxxx · Jun 29, 2016 at 05:43 PM

press "attach to unity" button,then press the play button in the unity editor

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

48 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

Related Questions

UnityVS debugger freeze Unity 4.5.1 0 Answers

Cant attach debugger | Compile Errors in VS but not in Unity? 0 Answers

Getting Debug.Log() to work in Visual Studio 1 Answer

Inputhandling is giving different results for left and right (arrows, ctrl's , shifts) but my code seems fine 3 Answers

How to debug a shader? 2 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