Title | : | Raspberry Pi Debugging with Visual Studio |
Duration | : | 16:26 |
Viewed | : | 64,142 |
Published | : | 08-11-2021 |
Source | : | Youtube |
Dave shows you how to single-step C++ code live in the Visual Studio debugger as it runs remotely on a Pi running Raspbian Linux. Don’t forget to check out my book on Autism and read the “Burgers with Bill Gates” sample chapter! https://amzn.to/3EUe321 Discord: https://discord.gg/eMVWUvrkP6 ---- IMPORTANT STEP THAT'S NOT SHOWN IN THE VIDEO: CONNECTION MANAGER in Visual Studio - To connect to the Pi, you must set up the Connection to it in Connection Manager as follows: - In the Debug-Options menu, under Cross Platform, open the Connection Manager. Add an SSH connection to your Pi using it’s hostname and your credentials, and it will verify that the connection works for you. - Here’s some additional info on the connection manager if needed: https://docs.microsoft.com/en-us/cpp/linux/connect-to-your-remote-linux-computer?view=msvc-160 ON THE PI: sudo apt update sudo apt upgrade sudo apt-get install openssh-server g++ gdb gdbserver wiringpi install make ninja-build rsync zip sudo groupadd gpio sudo usermod -a -G gpio YOURUSERNAME sudo grep gpio /etc/group sudo chown root.gpio /dev/gpiomem sudo chmod g+rw /dev/gpiomem --- If you need a source copy of WiringPi: Using WSL and your favorite Linux distribution: git clone https://github.com/zhaolei/WiringOP.git -b h3 cd WiringOP chmod +x ./build sudo ./build --- More helpful info I found this page quite helpful and recommend it: https://dogfeatherdesign.com/2017/01/17/debugging-cc-code-on-a-raspberry-pi-with-visual-studio/
![]() |
C++ Debugging for the ESP32 in Visual Studio 13:46 - 68,779 |
![]() |
E01: Stupid C++ Tricks with Dave 15:43 - 325,658 |
![]() |
MS-DOS has been Open-Sourced! We Build and Run... 15:01 - 420,317 |
![]() |
How to Debug the Raspberry Pi Pico Using Anothe... 10:55 - 45,805 |
![]() |
Debian is 30 this year. Here's why it's still w... 10:22 - 178,142 |
![]() |
How I Robbed The 2024 Steam Summer Sale - Steam... 10:37 - 1,345,098 |
![]() |
Remote Python Programming with VS Code and Rasb... 10:40 - 8,000 |
![]() |
You're running Pi-Hole wrong! Setting up your o... 18:02 - 1,267,747 |