Sharing this in case anyone else has issue with Debugger during the Inventory course Debugger section.
Unity 2020. 2.4f1
Visual Studio Community 2019 V.16.8.2
Windows 10
ISSUE DESCRIPTION:
Debugger would not auto stop like shown in the course after adding the Debug break points on the left side (or with f9 when cursor is on line).
POSSIBLE FIX [1]:
Description: Unity is unable to update certain files to allow crosstalk between programs. Run as administrator to fix.
Steps:
- Close Unity and VS
- Add shortcut to Unity to desktop
- Right click Unity shortcut > Properties > Advanced > Run as Administrater > Close Popup > Apply
- Reopen Unity and VS script for debuggin
- In VS at top click “Attach to Unity”
NOTE: May need to click popup option appearing in Unity - In Unity at top click “Play” button
POSSIBLE FIX [2]
Description: VS has a possible corrupted or bugged solution. Rebuild it to fix.
- In VS click “Build” > “Rebuild Solution”.
Cheers,