This repository contains a minimal docker configuration to have access to C/C++ debugging tools that are not available on macOS (for example valgrind).
To install it, just clone this repository and run:
docker build -t dbg .Once the image has been created, just go to a folder containing code you want to debug and run:
docker run --rm -itv `realpath .`:/home dbgYou will then have access to a shell in which you can debug your code, and the container will automatically stop as soon as you leave this shell.
This configuration contains only basic tools for debugging C/C++ code, but you can easily extend it by adding new packages in the Dockerfile.
This configuration was inspired by this one. I tried to make it as light as possible by installing fewer packages.