In general, the debugging information for your application that is needed by most debuggers can be produced by supplying the -g switch to the compiler. For more specific information about debugging options, refer to the documentation and manpages associated with your compiler.