79835722

Date: 2025-12-02 10:11:41
Score: 0.5
Natty:
Report link

In my case, it was because Unity switched off Debug mode. To re-enable debug mode so the editor will attach, you can

In Visual Studio

Debug -> Attach Unity Debugger

(this will open a pop-up; select your Unity instance)

Unity will warn you that you are trying to switch to debug mode, say yes for this session, and now Visual Studio will be able to attach (until you restart Unity. You can set it to all projects, if you want the perf hit to always have the debug mode on).

In Unity

At the bottom left corner, there is this bug-looking icon (the furthest to the left). You can click on that to enable Debug Mode

Unity Debug Icon

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Gideon Gyabaah