Can't debug with visual studio

Hello,
It’s been multiple days my visual studio loose ability to debug step by step my program like it did before. Now it only work on certain script and not other :/.
The error “This element cannot be found” appear when i put a stop point on my script, then when i want to stop debugging visual studio crash…
I tried reinstalling visual studio, i reinstall unity but still no change… I tried removing cs proj, no change…
Very frustrating.
Thanks in advance for your help.

Not a great suggestion but you could try deleting the Library (along with all the csprojs again) and rebuilding, since that sometimes solves funny problems.

If you’re on the newest version though I remember seeing someone else say something similar so maybe it’s a bug.

it worked ! thanks !

What also often helps is deleting all breakpoints (Debug → Delete All Breakpoints).
Or closing visual studio and reopening it from unity (Assets → Open C# Project).

(I know, your problem is already solved, but for the next time or the next guy :wink: )

1 Like