Create a debugging version
To debug a shared-object file, you must compile the shared-object file with an option that makes additional symbol-table information available to the debugger. Many C compilers use the -g compiler option to create a debugging version of a shared-object file.
For more information about how to compile, see Compile a C UDR.