Debugging a Custom Feed Handler

Run a debug-enabled compilation by accessing the debug library, where values of parameters can be viewed, before starting a custom feed handler.

The debug library is built from the same objects as the production library, but uses a different build process. Performance may decrease slightly when using the debug library, but this does not affect production builds.

  1. Change LD_LIBRARY_PATH , or LIBPATH on AIX, to point to the debug publisher library. The debug library is in the debuglib folder in the same parent directory as the production library.
  2. Compile your custom feed handler with debug information enabled, by calling:

    ./compile.sh –d

    The –d flag instructs the compile script library to build a debug version, and to compile and link against the debug shared library rather than the production shared library.

  3. Run the custom feed handler in a debugger.
Related tasks
Testing a Custom Feed Handler
Related reference
Compiler Options for the Publisher API Shared Library