I have set the reg key in both the location ,
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\4.0] "DebuggerEnabled"="true"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MSBuild\4.0] "DebuggerEnabled"="true"
I followed this question Unable to debug msbuild
But when I am doing msbuild.exe /? I cannot see the debug switch.
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise>where msbuild
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe
C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe