Windows 10 msvc_build.bat with debug parameter fails
See this forum topic: https://musescore.org/en/node/280043
There is a workaround, but every so often it reverts to full optimization for the mscore project property. I don't know why that happens. Sometimes it coincides with switching branches in git.
Fixing this batch file would be a big help for debugging in Visual Studio.