How can I debug running docker container in Visual Studio 2017? I tried with Remote Debugger as per post. But, when i try to execute command:
docker exec -it <id/name> "C:\Program Files\Microsoft Visual Studio 15.0\Common7\IDE\Remote Debugger\x64\msvsmon.exe" /nostatus /silent /noauth /anyuser /nosecuritywarn,
i get an error:
rpc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:262: starting container process caused "exec: \"C:\\\\Program Files\\\\Microsoft Visual Studio 15.0\\\\Common7\\\\IDE\\\\Remote Debugger\\\\x64\\\\msvsmon.exe\": executable file not found in $PATH"
Tried to run the Debugger manually and it starts without any problem. I am using VS 2017 Community and i have downloaded proper remote tool for it.
I want to run remote debugger with running container and then to attach that process to VS debug.
Does anyone have an idea what am i missing?