Can't see the source code in DDD. how it cab be resolved?

545 views Asked by At

I'm working with UBUNTU 16.04 Complied with gcc -g I've tried to look for answers for that and couldn't find.

1

There are 1 answers

0
user3629249 On

when executing DDD (aka gdb with extensions) the source code must be visible from the directory where the DDD is executed. The easiest way to have both the source and the executable in the same directory.

However, there are some commands that can be given to DDD to tell it where the source code is located.

Also, when the debugger is GDB or DDD, then for maximum flexibility instead of -g use -ggdb3

The source directory can be set with the command line parameter:

--directory=DIR    Search for source files in DIR.