- Docker
- .NET Core 1.1
- Visual studio 2017
- .NET Core Debugger (clrdbg)
I get the following error:
"The breakpoint will not currently be hit. A copy of TokenController.cs was found in TSL.Security.Service.dll, but the current source code is different from the version built into the TSL.Security.Service.dll."

I will get step-by-step how I create the .NET Core Docker image and run the Container instance from this image and then connect to the remote device with Visual Studio 2017, my Dockerfile.debug is at the bottom of my question:
- on my host docker
cd ~/repos/api.security // a git repository git pull // pull the latest code from git for a .NET Core projectdotnet restoredotnet publish // without any other args publishes with .pdbsdocker build -t tsl.api.security.image.debug -f Docker.debug .docker run -d -p 8080:5000 -p 10222:22 --name=tsl.api.security.container.debug -t tsl.api.security.image.debug // start and map my .NET Core Webapi in the container on port 5000 to host port 8080 and the ssh card in the container, port 22, on port 10222 on the hostdocker exec -it tsl.api.security.container.debug bash // terminal in starting the container from the host/usr/sbin/sshd // start sshd
Ok, now that the container is ready to remove debugs using ssh with Visual Studio 2017, on my machine with Visual Studio 2017:
- get the latest code from git
- open .sln with Visual Studio 2016
- Assembly in debug mode
- Go to Tools -> Options -> Cross-platform and my SSH-Remote:

- CTRL + ALT + P // joins the process
- Choose a connection type β SSH

- Select Managed (.NET Core for Unix)

And viola! I have my problem: 
If we look at /app in my Docker container, we will see pdbs: 
And the source code is the same as demonstrating the git pull steps in explaining the workflow.
Not sure where to go from here ...
Here is my Dockerfile.debug file:
source share