Attach debug to process Unity doesn't work

Viewed 564

I created new 3d unity project, then in asserts I created c# script if I click on it twice Visual Studio 2017 is opened. Then I would like to make a debug, so I set debug point and click in Unity on play button and nothing happes.

enter image description here

There is no attach button or something like this.

What am I doing wrong?

2 Answers

This happens randomly to me as well. The way I fix it it to go Unity->Edit Menu->Preferences->External Tools, and set the External Script Editor to something else, and then revert it back to Visual Studio.

If that fails, just underneath that dropdown there is a button Regenerate Project Files, which helps when your VS project files get messed up.

Also, upgrading to the latest version of Visual Studio and Unity Tools for VS could help.

My bad if I misunderstood this question, but all you have to do for unity to update your scripts for your game is ctrl + s, this will let unity know you made changes to the script and it will apply those changes.

Related