
Students will understand the concept of syntax highlighting and how to add syntax highlighting if the Text Editor doesn't initially support it.
Opening a terminal on Linux.
On Linux to open a terminal you can navigate to the folder containing the C file using the "cd" (change directory) command at the terminal. Or you can use the GUI (Graphical User Interface) and right click inside the folder where you want to open the terminal and then select "Open Terminal".
Opening a terminal on Mac.
To open a terminal in a specific folder in Mac you can open a folder anywhere and then use the "cd" command to navigate to the folder containing the source code you are looking to execute.
If you want to open a terminal from inside Finder then go into System Preferences and select Keyboard > Shortcuts > Services. Find "New Terminal at Folder" in the settings and tick the box. Then navigate to the folder containing the file you want to compile and select "New Terminal at Folder".
Opening a terminal on Windows.
To open a terminal on windows at a specific folder you can't use the "cd" command. So instead you have to navigate inside the folder containing the source code you wish to compile using the File Explorer. Then at the top of the screen where the file path is, delete the file path and type "cmd", finally hit enter to open a terminal at the folder.
As GDB was initially designed for Linux installing it there is very straightforward. Just open a terminal and give the command:
sudo apt-get install gdb
This course will begin by discussing how you can make clear, concise programs to make the process of debugging much easier. Then we will cover how you can use the debugging tool GDB to debug C programs from the terminal and give you the opportunity to practice your new skills with five practical exercises. In the final section we will investigate how we can use the debugging tools available within the Eclipse IDE to fix broken Java programs and like the previous section there will be five practical exercises.