Attaching the Visual Studio remote debugger

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:

  1. Open the PowerShell window.
  2. Determine the name of your application Pod using the following standard command:
kubectl get pods -n dev
  1. 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 ...

Get Hands-On Kubernetes on Windows now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.