PMPrintf, a very helpful utility for debugging PM/WPS programs. Put printf()-like statements in your program (which can conditionally be compiled using certain #define's) and look at the output in a PM window.
Program is distributed as ZIP package: download to temporary directory and unpack to destination folder. See below for download link(s).
Following ones are the download links for manual installation:
PMPrintf v. 2.80 (21/4/2024, Andreas Buchinger) | Readme/What's new |
Changelog: (taken from .ipf/.inf file)
--------------------------------------
20240421 Version 2.71 - 2.80
- Now use one unified version numbering scheme for the different components
- PmPrintfGetVersion() added
- Changes to reduce compiler warnings
- Modified build environment, compile/link options, now create .sym and .xqs files, ...
- Fix SMP issue im PmPrintf.exe (freeing memory before written to listbox)
- Improve speed and fix lossing messages in viewer (PmPrintf.exe) with WinSendMsg instead WinPostMsg
- Increase process priority to better handle massive message bursts (>10'000 messages in 10s). |
master.dl.sourceforge.net/project/pmprintf-os-2-debug-helper/PMPrintf_v2.80.zip?viasf=1 | local copy | |
PMPrintf v. 2.60 (4/11/2018, Dennis Bareis, Andreas Buchinger) | Readme/What's new |
2.20181103 Version 2.60 (pmprintf.exe 96.255)
* - Added ExceptQ to the PM viewer (pmprintf.exe)
* - Fixed trap in pmprintf.exe when string in queue is to long. Remember it's still possible to crash your application when you supply too long strings to pmprintf. (More than 4k?)
* - You can now disable the PMPRINTF API by setting the environment variable "NOPMPRINTF" (to any value). This has been requested by someone and probably improves performance when not debugging... |
www.hobbesarchive.com/Hobbes/pub/os2/dev/tools/debuggers/PMPrintf_2-60.zip | local copy | |
PMPrintf v. 96.259 (18/3/2018, Dennis Bareis, Andreas Buchinger) | ||
hobbes.nmsu.edu/download/pub/os2/apps/PMPrintf259.zip | ||
PMPrintf v. 96.254 (29/8/2017, Dennis Bareis, Andreas Buchinger) | ||
hobbes.nmsu.edu/download/pub/os2/util/PMPrintf254.zip | ||
PMPrintf v. 96.253 (7/3/2009, Dennis Bareis, Andreas Buchinger) | ||
hobbes.nmsu.edu/download/pub/os2/dev/util/PMPrintf253.zip | ||
PMPrintf v. 2.57 (17/6/1993, International Business Machines Corporation (IBM), Mike Cowlishaw) | Readme/What's new |
PMprintf 2.57
PMprintf -- 'printf' support for OS/2 Presentation Manager
==========================================================
Copyright (c) International Business Machines Corporation, 1991, 1993.
All rights reserved.
Abstract
""""""""
* Would you like to use the C standard function 'printf' in your PM
programs for debugging, occasional error messages, etc.?
* Do you have existing subroutines, that use printf, that you'd like to
use in PM programs?
If you answer yes to either of these, you may find the PMprintf tool
useful. PMprintf comprises two parts:
printf.obj -- an object file, compiled with IBM C Set/2, which you
link in with your PM program just like any other subroutine. This
provides the printf service to that program. You write printf calls
in your C program in the usual way; the printf subroutine buffers
the data (on a per-thread basis in multi-thread programs) and adds
each completed line to a message queue. For example, the following
printf call will write a line to the PMprintf application and sound
the Alert (bell):
printf("This seems to work\a\n");
Sample source (in C) is also provided for the printf function.
pmprintf.exe -- is a PM application which sets up the queue used by
printf and then "catches" and displays incoming printf lines. It is
a kind of 'monitor' or 'virtual console' which will accept lines
from any number of processes that use printf. PMprintf offers a
number of options, including the ability to log the incoming lines
to a file. See below for a short description of the options.
If PMprintf has been started then it will display the incoming lines
from printf calls in other processes. If it has not been started,
then printf calls are quietly ignored (they return 0, not an error).
PMprintf can be started or stopped at any time, and printf calls
will then become active or be ignored as appropriate.
Sample source for printf (printf.c) is included in the package; this
offers certain customization options (for example, you can cause a
prefix to be added to the start of each line so that different
applications can have unique output lines, or cause lines to be broken
at a certain length). There are also some usage hints and minor
restrictions, documented in the header of printf.c.
-----------
Mike Cowlishaw, IBM UK Laboratories |
ftp.pc.ibm.com/pub/pccbbs/os2_ews/pmprtf.zip | local copy |
This work is licensed under a Creative Commons Attribution 4.0 International License.
Add new comment