Ok now, open Visual Studio 2019, and get the sources that match the code running on your pod. Compile them. Set the project for your app as the Startup Project. Choose Debug -> Attach to Process.
Fill out the fields in the dialog with the master node name, the port of the SSH service, the root account and the password that you assigned to the root account. Press
dotnet process and click
Managed (.Net Core for Unix) and press
Set a breakpoint in the run loop of the code, and wait. When that line executes the code will break:
From this point you can step, hover over variables, or anything you might do when debugging locally.