Remote debugging with GDB and GDBServer on Alpine and Visual Studio Code
Skip to end of metadata o to start of metadata gdb and gdbserver can be used in combination to provide debugging capabilities over the network. gdbserver is run on the machine you want to debug. gdb is run on the machine you want to debug from, usually your local machine. More here . Before we get started, we need some software. Alpine 3.8 will be the gdbserver. NFS We will be using nfs (Network File System) to mount a remote directory and have it look like a local directory. We will cd to the nfs mounted directory which contains the program we want to debug before we launch gdb. This way the program and symbols will match. gdb will be running on your local client, but it will be launched when in a directory on the gdbserver's system. More than you wanted to know about nfs . To set up nfs, you will need nfs software on your server and your client. SERVER (Your Alpine machine) - Ad...