OS2 World Community Forum
OS/2, ArcaOS and eComStation - Warp Community
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
OS2World.com Forum is back !!!
Remember to visit OS2World at:
http://www.os2world.com
Home
Help
Search
Login
Register
OS2 World Community Forum
»
OS/2, eCS & ArcaOS - Technical
»
Programming
»
PMPrintf package v2.80 and PMPrintf_abtrace code samples
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: PMPrintf package v2.80 and PMPrintf_abtrace code samples (Read 1947 times)
Andi B.
Hero Member
Posts: 852
Karma: +11/-2
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.
Logged
Martin Iturbide
OS2World NewsMaster
Global Moderator
Hero Member
Posts: 4937
Karma: +44/-1
Your Friend Wil Declares...
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
Logged
Martin Iturbide
OS2World NewsMaster
...
just share the dream.
Print
Pages: [
1
]
Go Up
« previous
next »
OS2 World Community Forum
»
OS/2, eCS & ArcaOS - Technical
»
Programming
»
PMPrintf package v2.80 and PMPrintf_abtrace code samples