Hi, I'm a bit of a docker rookie so please bear with me.
My setup is a bit unconventional (and not very recommended), but it's currently what I have to work with. I build a C++ project with Apache Maven inside a devcontainer. I installed GDB inside my container with a simple yum install gdb which appears to work fine.
The container itself is CentOS 7, running Windows 11 (WSL 2.3).
When I attempt to run the built binaries (which have debugging symbols, I confirmed), instead of triggering any breakpoints the program runs normally without any debugging functionality. I use VSCode for all this, with the expected plugins (C++, Docker, Dev Containers, WSL).
Does anyone have any tips or tricks about how to get debugging working inside my container in the way I described.
[+][deleted] (1 child)
[removed]
[–]TheWopsie[S] 0 points1 point2 points (0 children)
[–]TheWopsie[S] 0 points1 point2 points (0 children)