OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Programming => Topic started by: Andi B. on April 21, 2024, 07:43:39 pm

Title: PMPrintf package v2.80 and PMPrintf_abtrace code samples
Post by: Andi B. on April 21, 2024, 07:43:39 pm
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.
Title: Re: PMPrintf package v2.80 and PMPrintf_abtrace code samples
Post by: Martin Iturbide on April 22, 2024, 03:50:08 pm
Thanks Andi B.

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

Regards