svaante / dape

Debug Adapter Protocol for Emacs
GNU General Public License v3.0
448 stars 25 forks source link

how to set cwd by relative path such as "./" when use cpptools #86

Closed ipyffor closed 1 month ago

ipyffor commented 5 months ago

"./" not work(can not find program), :program and cwd both used relative path,

svaante commented 5 months ago

Could you give a bit more context?

ipyffor commented 4 months ago

image image Is the use of the relative path can not find the program, can determine whether to use the relative path, and according to the cwd splice it, each time the input absolute path is very long, and cwd can be set through the variable, similar to ${workspaceFolder}, or leave an interface can customize the method of obtaining the root path

svaante commented 4 months ago

It is command-cwd + :program which cppdbg uses to construct the path towards the program.

So for if you change command-cwd to "/home/gotpl/personal/new_proj/labtask/ImageSurveying/ImageSurveying/" I would gett that it would work for you.