Documentation Center

Debugging the Adapters

The best way to debug the adapters is with the Perl Debugger.

Currently, the adapters do not output any debug information.

There are several test scripts in the directory under the SDL Contenta home directory — encaps/adapters/testing. These scripts have a variable named $debug, which if set, causes the program to branch into statements that directly call into the adapter's Perl modules without going through the COM/CORBA API by way of the GetDocPerl/PutDocPerl methods. (The debuggers cannot step through the COM into the Perl modules.) You edit the script and search for my $debug, and set it to 1. The test scripts all output usage if you simply enter the name of the script from the command line prompt.

The names of the scripts are:
FilenameUsesTests
testExCat.plPcmGetDocCat.pmPublishing adapter which creates one file of concatenated Contenta object data.
testExCat.plPcmPutDocFetch.pmFast Fetch publishing and view adapter
testExEntCat.plPcmGetDocEnt.pmGetDoc adapter of cat editor tools such as EpicEdit Cat version.
testImpEntCat.plPcmPutDocEnt.pmPutDoc adapter of cat editor tools such as EpicEdit Cat version.