Description of the diagnostic files.

dHelp outputs different diagnostic information during generation of the help file. This information is categorized and saved to the files with LOG extension.

These project file fields customize the diagnostic information generation:

  1. Field CreateLogFiles defines whether diagnostic information will be generated. By default dHelp generates all diagnostic files. If CreateLogFiles flag is set, dHelp clears the contents of all log files before compiling the project.
  2. Field LogFolder specifies folder where files with diagnostic information will be created.

dHelp creates the following report files:

 

Bad links report (dh_BadLinks.log)

This file contains information about references that cannot be solved.

The possible messages are:

1. "<ref_topic>" not found
      (referenced by "<topic>")

This message alerts about errors in the topic aliases. Error occurs when the right part of the '<topic1=topic2>' expression was not found. Message has the following parameters:

Example:

"TDCWeekDay" not found
(referenced by "TDCFirstDayOfWeek")

Solution:

2. "<ref_topic>" topic not found in source
      (referenced by see also of "<topic>")

This message reports about errors with items listed in the See Also section. Error message is included when referenced item cannot be found among source code topics. Message has the following parameters:

Example:

"TDCFltBld.OnSaveToStream" topic not found in source
(referenced by "TDCPrmListBox.OnSaveToStream")

Solution:

3. "<ref_topic>" description not found
      (referenced by see also of "<topic>",
       found as topic "<ref_found_topic>"

This message reports about errors with items listed in the See Also section. This error message is reported when referenced topic cannot be found among described topics but it is an element of the parsed source code units (class, property, procedure, etc.). If topic is a class member (property, method or event) dHelp always tries to fix failed topic link by searching it among members of all parent classes. Message has the following parameters:

Example:

"OnGetLookupDef" description not found
(referenced by see also of "TDCPrmListBox.GetParamLookupDef",
found as topic "TDCPrmListBox.OnGetLookupDef")

Solution:


Compiler output report (dh_Compiler.log)

This file contains messages written by HTML Help Workshop during compilation of the CHM help file. Program intercepts all messages generated by compiler for the currently generated help project and stores them in the dhpFH_Compiler.log file. You can use this information to validate created help file.

Note: dhpFH_Compiler.log file is empty after generating help in the HLP format.

Example:

Microsoft HTML Help Compiler 4.72.7352

 
Compiling D:\pSoft\OUT\Help_CHM\psoft.chm

 
DCBtPan.html

DCCalc.html

DCCalendar.html

...

Compile time: 1 minute, 26 seconds

1,974 Topics

14,315 Local links

1,577 Internet links

0 Graphics

 

Created d:\pSoft\OUT\Help_CHM\psoft.chm, 972,913 bytes

Compression decreased file by 3,596,819 bytes.

 

Not complete description report (dh_NoBodyDesc.log and dh_NoBriefDesc.log)

These files list topics that are partially described. In description section each topic must have brief and primary descriptions (see description files for the additional information). If one of the description parts is absent, dHelp notifies user about this error through dhpFH_NoBriefDesc.log and dhpFH_NoBodyDesc.log files. File dhpFH_NoBriefDesc collects topics that have empty brief description part. File dhpFH_NoBodyDesc collects topics that have empty primary description part.

Both files have the same structure:

<Description_file_name_1>
   <Failed_topic_11>

   <Failed_topic_12>

   ...

<Description_file_name_2>
   <Failed_topic_21>

   <Failed_topic_22>

   ...

where

Note: Files where all topics have right and complete descriptions are not listed.

Example:

D:\PROJECTS\dHelp\Samples\TOPICS\documentation2.txt

DCFormsUseOneFont

DCStdCtrls
 
D:\PROJECTS\dHelp\Samples\TOPICS\DCsysutils.txt

DCGetDelphiVerByCompilerVer

DCSubStr

DCExpandRelativeFileEx

DCExpandRelativeFile

Solution:


Not described report (dh_NoDescTopic.log)

This file contains the list of topics that are not described. By default program don't include topics without description. Project file has field IncludeEmptyTopics where you can specify whether to include empty topics in the help file or not.

Note: When IncludeEmptyTopic flag is set dhpFH_NoDescTopic.log file will not contain any items.

Topics in the not described report are listed in the alphabetical order using their full name:

Note: You can include topics from this file directly into the Topics section of the project file.

Example:

DCClasses.DCWriteIntToStream

DCClasses.DCWriteStrToStream

DCClasses.DCWriteStrWithLengToStream

DCColors.DCColorToRGB

DCColors.DCColorToString

DCColors.DCRGBToColor

DCColors.DCStringToColor

DCControls.DCAddBitmapFromResource

DCControls.DCAddBitmapFromResourceEx

DCControls.DCAddIconFromResource

DCControls.DCAddIconFromResourceEx

Solution:


Performance report (dh_ValidSize.log)

Contents of this file represents the effective size of the topic descriptions. dHelp calculates all valid characters (Latin letters and numbers) found in brief and primary description sections and stores this information in the dhpFH_ValidSize.log file. Only topics that were successfully imported are taken into account.

Program divides total size by files with descriptions and presents this information in the following format:

In module <description_file_name>
   useful symbols are: <total_module_size> (<total_module_size_in_KB> KB)

where

At the end of the file dHelp inserts the total effective size for all included topic descriptions. The format of the message is:

In all files useful symbols are : <total_size> (<total_size_in_KB> KB)

where

Example:

In module D:\PROJECTS\dHelp\Samples\TOPICS\documentation.txt

useful symbols are: 38733 (37.825 KB)

 

In module D:\PROJECTS\dHelp\Samples\TOPICS\DCCalendar.txt

useful symbols are: 43436 (42.418 KB)

 

In module D:\PROJECTS\dHelp\Samples\TOPICS\DCCalendarPro.txt

useful symbols are: 12847 (12.546 KB)

 

...

--------------------------

In all files useful symbols are: 385232 (376.203 KB)