The instructions below use the global_navigation example application for the Auterion SDK. The method explained is valid for any C++ application for AuterionOS.
Remove the CMD line for the executable you would like to debug from your Dockerfile so you can start it manually:
(gdb) break main
Breakpoint 1 at 0x2d28: file /opt/sysroot/app/src/global_navigation.cpp, line 61.
(gdb) run
Starting program: /opt/sysroot/app/build/global_navigation