Install the Dot Net Debugger on a Raspberry Pi

Install the Dot Net Debugger on a Raspberry Pi

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.

Stephen

Hi, my name is Stephen Finchett. I have been a software engineer for over 30 years and worked on complex, business critical, multi-user systems for all of my career. For the last 15 years, I have been concentrating on web based solutions using the Microsoft Stack including ASP.Net, C#, TypeScript, SQL Server and running everything at scale within Kubernetes.