Author Topic: PMPrintf package v2.80 and PMPrintf_abtrace code samples  (Read 2466 times)

Andi B.

  • Hero Member
  • *****
  • Posts: 870
  • Karma: +14/-2
    • View Profile
PMPrintf package v2.80 and PMPrintf_abtrace code samples
« 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.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5026
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: PMPrintf package v2.80 and PMPrintf_abtrace code samples
« Reply #1 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
Martin Iturbide
OS2World NewsMaster
... just share the dream.