The cherry on top is attaching your Visual Studio 2019 to the IIS app pool process using a remote debugger running inside the container. This process is not fully automated (but could be scripted), and it is possible to further unify PDB symbols between the container image and your local development machine. To attach the debugger, execute the following steps:
- Open the PowerShell window.
- Determine the name of your application Pod using the following standard command:
kubectl get pods -n dev
- Use the kubectl cp command to copy the VotingApplication.pdb file to your current directory, as follows:
PS C:\src> kubectl cp -n dev voting-application-frontend-66b95ff674-mmsbk:/inetpub/wwwroot/bin/VotingApplication.pdb ...