Raspberry Pi Debugging with Visual Studio
081121 Like and subscribe. This is an archive, check the link in the end if you are owner. 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/
https://rumblevideoarchive.wordpress.com/
-
9:08
Dave's Garage Archive Channel
7 months agoWindows Longhorn and the Worst Code I've Ever Seen: Dave Cutler
63 -
17:25
Degenerate Jay
11 hours agoGreen Lantern Deserves Better
19.1K2 -
3:48:44
Badlands Media
22 hours agoEye of the Storm Ep. 134 - 10:30 PM ET -
69.7K64 -
3:42:24
SNEAKO
7 hours agoSECRET STREAM SECRET SURPRISE
70.9K22 -
2:31:41
GruntStyleGaming
8 hours agoEnlisted: Featuring LumpyPotatoX2 - #GSPatrioticSummer
32.9K4 -
7:59:24
FusedAegisTV
14 hours agoXIV TUESDAYS! I AM THE RUMBLE MASTER OF THE RUMBLE WARRIORS | Makin' Moves (6.3)
42.7K4 -
44:33
The Anthony Rogers Show
18 hours agoEpisode 321 - Mickey Avalon
31.1K2 -
1:32:11
Glenn Greenwald
12 hours agoMedia Converts Taboos About Ukraine Into Acknowledged Truths; Orthodox Rabbis on Condemning Israeli War; PLUS: Media Denies Biden’s Decline | SYSTEM UPDATE #284
77.1K221 -
37:44
Candace Owens
9 hours agoEverything We Learned About World War 2 Is A Lie | Candace Ep 7
70.5K288 -
42:09
The Late Kick with Josh Pate
11 hours agoLate Kick Live Ep 523: CFB 2024 Unknowns | Dabo Legacy Debate | Big12 Over Big Ten | Mon Title Games
39.1K1