Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Use visual studio as Unity Debugger

Discussion in 'Scripting' started by MindSpyke, Dec 2, 2015.

  1. MindSpyke

    MindSpyke

    Joined:
    Sep 13, 2013
    Posts:
    14
    Hi , since I'm used to Visual Studio I'd like to use it for the programming in my game ... I've set VS as the default editor in my Unity preferences but how do I use it to debug my unity scripts ? Eg : To be able to place breakpoints in VS and debug while I'm executing my game...

    Thanks for the help :)
     
  2. KelsoMRK

    KelsoMRK

    Joined:
    Jul 18, 2010
    Posts:
    5,539
    I don't believe you have to set a default editor anymore. Go to Assets > Open C# Project to open Visual Studio. Then there should be a button in the VS toolbar where the "Play" button normally is that says Attach to Unity.
     
  3. passerbycmc

    passerbycmc

    Joined:
    Feb 12, 2015
    Posts:
    1,739
    also make sure you installed the VS extension for unity
     
  4. lordofduct

    lordofduct

    Joined:
    Oct 3, 2011
    Posts:
    8,380
    VS extensions should have installed by default when installing Unity (as long as you are using Unity 5).
     
  5. CoopReed

    CoopReed

    Joined:
    Nov 17, 2015
    Posts:
    27