Dape cannot find sources
Hi,
I'm trying to use dape to debug, however dape can't find the sources:
```
Run adapter: gdb :cwd "/home/user/src" :program "./build/test-app" :args "/home/user/src/test" :stopOnEntry t
No source file named /home/user/src/test-app.cpp.
Breakpoint 2 (-source /home/user/src/test-app.cpp -line 182) pending.
* Processed /home/user/src/build/test-app *
> pwd
Working directory /home/user/src/.
user@studio:~$ ls -la /home/user/src/test-app.cpp
-rw-r--r-- 1 user user 8286 30 dic 16.53 /home/user/src/test-app.cpp
```
I tried all kind of relative and absolute paths, but it just don't work.
SeerGdb can see the sources just fine and also when running gdb from command line the sources are found.
It seems that if, after starting dape **when a buffer in the root path is opened** (e.g. CMakeLists.txt) and I add the src and include to the search path then the sources are found:
```
> dir src
Source directories searched: /home/user/src/src:$cdir:$cwd
> dir include
Source directories searched: /home/user/src/include:/home/user/src/src:$cdir:$cwd
> c
```
What's the issue? How do I start dape?
3 条评论