Answers

As far as l know, the debug option was removed since v14.0 (VS2015). If you want to continue to debug your file, l suggest that you can view the build log to monitor the entire build process by this way.

>>>>>add the command "-v:Diagnostic" on command line

Besides, the MSBuild supports downward compatibility.The higher version of MSBuild is compatible with the lower version. Your new MSBuild tool is v16.0. So it compiles both vs2019 itself and previous versions of the project successfully. We do
not recommend that you use the old version of the MSBuild tool to compile projects that are beyond the old version. You would better use your new MSBuild tool and add the "-v:Diagnostic" to achieve your requirement.

MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any
compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com