Running Visual Studio Remote Debugger in Windows Container (Docker managed)

后端 未结 4 1042
孤城傲影
孤城傲影 2021-02-02 14:28

I try to run the Visual Studio Remote Debugger in a Windows Container on Windows Server 2016 TP4. Since it runs inside a conta

4条回答
  •  一生所求
    2021-02-02 15:06

    To debug you'll need to install the remote tools into the image, run the container as per normal, and then start the remote debugger using docker exec.

    The command line is as follows:

    docker exec -it "C:\Program Files\Microsoft Visual Studio 14.0\Common7\IDE\Remote Debugger\x64\msvsmon.exe" /nostatus /silent /noauth /anyuser /nosecuritywarn

    I've got more detail in a blog post, and yes, turning off auth on your local dev machine does carry some risk (no matter how small) but this should at least give you an idea of how to do it. You can always tweak the command line options to get it working the way you want.

提交回复
热议问题