OS/2, eCS & ArcaOS - Technical > Programming

PMPrintf package v2.80 and PMPrintf_abtrace code samples

(1/1)

Andi B.:
I've packed together my latest code base of PMPrintf and packed it together as v2.80. See https://sourceforge.net/projects/pmprintf-os-2-debug-helper/files/

PMPrintf sends standard printf formatted debug messages into a queue. If the PM viewer application (PMPrintf.exe) or CLI logger (PmPfLog.exe) is running it will display these queued data. Otherwise they go to NULL. Log files can be written to disk in parallel too.

If you never used PMPrintf I strongly suggest looking at the code and usage samples at https://sourceforge.net/p/pmprintf-abtrace/code/ci/master/tree/. These samples loads pmprintf.dll dynamically if it is available on the target system. If not your program will normally run and your debug messages goes to NULL. There is no need to make extra release and debug builds. The small overhead will be negligible most of the time. A programmers life can be so easy :-).

Have fun.

Martin Iturbide:
Thanks Andi B.

I had also uploaded it to HobbesArchive.com to have it as backup too.

Regards

Navigation

[0] Message Index

Go to full version