Unless you are developing a simple application with Dot Net on a Pi, you will come to a point where you want to debug that application. This is particularly true when you are developing applications that interact with additional devices and sensors through the GPIO pins.
When you install Dot Net Core, it does not install any debugging tools, so you must install them manually. This is easy enough once you know how: –
sudo apt-get update
sudo apt-get install procps -y
sudo apt-get install wget -y
mkdir /home/admin/.vs-debugger
sudo curl -sSL https://aka.ms/getvsdbgsh -o "/home/admin/.vs-debugger/GetVsDbg.sh"
sudo bash /home/admin/.vs-debugger/GetVsDbg.sh -v latest -l /vsdbg
This enables Visual Studio to connect to the Pi and debug code in real time.