For information about setting the debug daemon to listen for debug engines, see the related topics.
In order to debug your program at the source code level, you need to compile your program with certain compiler options that instruct the compiler to generate symbolic information and debug hooks in the object file. Compile without optimization (-O0) and with the -g option. See the related compiler option topic or your compiler reference documentation for information about compiling your program with debug information.