de en es fr nl pl pt sv zh

allgemein

Introduction to Strace

Andreas Heck

There is probably no debugging tool on Linux that is more valuable and versatile than strace. This tool shows us all the calls a program makes to the operating system, including the data it transmits to the operating system via these calls and the return values sent back by the OS. Therefore, it...

Dynamic Printf Debugging with GDB

Andreas Heck

When we debug a program with printf() we have to recompile it whenever we add new printf() statements! Right!? Wrong! With gdb we can add printf() statements without recompiling a program and even add them while it is running. Adding Printfs with GDB Let’s say we have the following example program...

Getting started with GDB

Andreas Heck

Most programmers prefer to write code over debugging it. Unfortunately, code breaks a lot more often than we would like and it often breaks in situations that are hard to debug. Therefore, an essential skill as a programmer is to know how to debug your code (and that of others). When facing our...

Simple Raspberry Pi Backup

Andreas Heck

So you have set up your Raspberry Pi as a home server and everything works as intended. But what if the SD card fails and all the data you stored on your Raspberry Pi is suddenly lost forever? All storage devices containing important data need to be backed up on a regular basis. And this …...

The Anomaly of the char Type in C

Andreas Heck

When we declare a variable of type int and we don’t tell the compiler if it is supposed to be signed or unsigned it is signed by default: This is true for all integer number types (short, int, long, long long). But there is one exception: The char type! The char Type is Special According …...