Install Clang and Visual Studio Code on Ubuntu
Clang is very easy to install. Open a terminal and issue this command:
sudo apt install clang
It takes a little bit more for Visual Studio Code (aka VS Code). Start on the download page of VS Code. Just google for download Visual Studio Code or click here. Click the Deb rectangle and pick the Open with Software install (default) and that will install it.
After that is installed, run VS Code (open a terminal and type code) and click the extensions icon (5th down on the left) and type in C++ in the search box. The first result is by Microsoft so select it and click install.
Now I created a Projects folder under my home, so click on open Folder in the File menu and select Projects. You can create individual folders for applications under that. If you look closely you can see Asteroids, AsteroidsDND and Examples with Asteroids being open and containing two .c files.
To compile, make sure the open tab is the file you wish to compile then click Terminal on the top menu and Run Build Task… You’ll see the compiled programs on the left under the Asteroids folder (decnot and ex1).
There’s a bit more for configuring Builds and Debugging but I’ll cover that another time.
My secret: is I use a piece of software called
There are four steps to do this. That’s assuming that you have successfully compiled your C or C++ program and have the source file handy.

In the post about rsyslog three days ago, I explained how to log from Linux programs using the rsyslog daemon.
Just run DebugView and leave it there. It might catch other stuff from Windows, but when you run your program from the command line or double click on it, it will execute quickly and you’ll see any strings captured like this one.
I’ve used diff and merge tools since the year dot. They let you compare two files and see on what lines they differ. You can also copy individual or blocks of lines from one to the other; that’s the merge. My all-time favourite was the commercial Araxis Merge which did a three way comparison and could be controlled by COM. I did this to compare two code bases.

When I wrote the Windows version of the book I used Visual Studio and it was quite excellent. But Visual Studio Code (VSC), the free cross-platform IDE is also very impressive.