Search Unity

Visual Studio 2019 - No 'Attach to Unity' debug option

Discussion in 'Code Editors & IDEs' started by andrewhoke, Apr 18, 2019.

  1. JohnnyGo-Time

    JohnnyGo-Time

    Joined:
    Aug 8, 2021
    Posts:
    17
    I had the issues above in parallel with the weird behaviour that if I opened my .sln, it would correctly open in VS2022. But if I double-clicked a script in Unity, it would open in a new instance of VS2019 without intellisense etc.

    Having tried all the steps above to no avail...well I should have known better than this, but for me the issue was I had an apostrophe and a space in my project folder and .sln names (I am guessing the culprit was the apostrophe in the foldername.)

    After closing everything and removing non-letters from my folder and .sln names, everything worked correctly.
    Unity 2021.3.2f1 and VS2022 17.2.6
     
  2. LtKelleyUSMC

    LtKelleyUSMC

    Joined:
    Oct 6, 2012
    Posts:
    45
    Boy, been bugged about this Debugger tool not working for me in some time, but your answer to unchecking Editor Attaching, then exiting Unity, then Restarting Unity and CHECKING Editor Attaching to TRUE, then exiting Unity, and restarting Unity DID IT FOR ME. THANKS
     
  3. Elecman

    Elecman

    Joined:
    May 5, 2011
    Posts:
    1,374
    Installing the "visual studio editor" package via the package manager fixed it for me.