Closed nasseralkmim closed 3 months ago
I managed to make it work, by using pipeTransport option. Without the need for accessing the file with TRAMP.
((c++-mode . ((dape-command . (cpptools
:program "/script/build/app"
:pipeTransport (:pipeProgram "apptainer" :pipeArgs ["exec" "instance://ubuntu" "sh" "-c"]))))))
Hi,
I would like to run the debugger inside a container (apptainer) after accessing the container with TRAMP.
I saw the other thread regarding rdbg, but I could not figure out the configuration for a simple c++ file.
How to reproduce
Inside a container sandbox (directory of the container) I create a cpp file:
I installed the debugger adapter inside the container as in the readme. Then I run dape while accessing the source code with TRAMP with the config:
cpptools command-cwd "/apptainer:ubuntu:/script/" :program "script/build/app"
And I get a timed-out error:
From the container I can access the OpenDebugAD7 with the specified path.
Am I missing something?
I can give a recipe to create the container if needed.