Sometimes ago somebody in Winboard Forum have asked for utility, which will create
a PGN from WinBoard debug-files. Here you are. This is only a first approach, so
it may have bugs. Please report them to me. But now it supports almost all engines
with thinking output, even if they are not supported by Winboard itself (Thor, Mscp,
Golem etc.). 
There are still some limitations:

a)human-comp debug files are supported by separate executable;
b)no long filenames support.

Usage:

LGDEBPGN <DebugFile>or<@BatchFile> <PGN-file> [-Options]

Currently following options are supported:

-mN    - sets right margin of PGN to N chars(default is 80);
-t1    - show used time info in seconds;
-t2    - show used time info in centiseconds;
-t3    - show sum of used time in seconds;
-t4    - show sum of used time in centiseconds;
-s     - show score/depth reached;
-k     - show speed in Knps;
-n     - show nodes reached;
-p     - show engines PV(max.length=80 chars);
-pc    - try to create clean SAN PV output(2-3 times slower);

If you want to proceed multiple debug files, create text file with their names
('e.g. with a command "dir /b *.deb >File')
and enter:

LGDEBPGN @File OutFile

Package consists of 7 files:

lgdebpgn.txt - file you are reading now
lgdebpgn.exe - 16-bit executable
lgdebhum.exe - 16-bit executable for comp-human games(v1.00)
18.deb - sample debug-file
18_0.pgn - PGN created without option
18_1.pgn - PGN created with "-t1" option
18_2.pgn - PGN created with "-s -p -n -t2" option
18_3.pgn - PGN created with "-s -pc -t4" option

Changes since first release:

v1.42
-LFN support
-support for games with pre-defined position (loaded from FEN,EPD)
-"PlyCount" tag added
v1.41
-support for games with pre-defined position (loaded from PGN)
-added space between move and comments
-average ply is now shown in "Annotator" tag (advise from G.Simon)
v1.40
-SlowChess 2.78 output support (Be1xd2+, Qa1-h8 etc.)
-Pulsar 2.01f support (random chars caused LGDEBPGN to stop processing debug file in the middle)
v1.39
-Colchess 8.0 output correct support (e1e8+ instead of e1e8)
v1.38
-cosmetic changes in date format
v1.37
-"checkmate" command recognized
-draw offer recognized
v1.36
-bugfix(1.35 was compiled with wrong options)
v1.35
-fixed problem with engines rejecting "time" (e.g. Ghost)
v1.34
-"t3","t4" switches added
v1.33
-small bugfixes
v1.32
-now program shows "rejected" moves also
-aborted games now processed better
v1.31
-more Chispa smilies processing
v1.30
-fixed bug with processing too long pv
-output now is similar to that of Arena
v1.29
-much faster(1.5 times with "-p", 3-5 times with "-pc") work
v1.28
-support of DrunkenMaster move ordering(not clears the move counter when new game starts)
-support of DrunkenMaster bug(wrong order of fields in thinking output)
v1.27
-pondering thinking filtered out(sometimes caused analyzing PV for the side not on move)
v1.26
-more intelligent language support(Polish,Spanish,German):but still should not work for
 the very first moves
v1.25
-first approach to create clean SAN output of PV
-another names bugfix
v1.24
-more pv exceptions(Golem,Gringo)
-fixed bug with names in batch mode
v1.23
-support of batch files
v1.22
-support of Matheus bug(no space between nodes count and pv)
v1.21
-support of Pooky bug(feature name without trailing double quote)
v1.20
-support of Tao games(different move numbering)
v1.19
-support of LG games(different move numbering)
v1.18
-support of Freyr pv(additional field)
v1.17
-better Noonian pv(spaces instead of semicolons)
v1.16
-cleaner pv
v1.15
-support of Mscp pv(different order of fields)
v1.14
-support of Golem pv('wtwtwtwt')
v1.13
-support of many engines pv (e.g. Thor)(depth with add.chars,score with points)
v1.12
-support of Belzebub(tabs)
v1.11
-support of Mint pv(smilies)
v1.1
-added score,depth,node,PV retrieval;
-promotion moves without promotion piece now accepted and recognized as e.g. a7a8q;
-added empty Event,Site items to the PGN header;
-added Date item to the PGN header(from the debug file creation date);


Enjoy,
George Lyapko
