It seems like that at least one of the built in security features in Microsoft Defender for Endpoints interfere with debugging, and close down the debugged application as a security measure. First ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results