Debugging WPS applications can be really tiresome, because you have to restart the WPS for every tiny change you made to the source codes to take effect. And, as with any PM program, you can't just printf() stuff to the screen. Even worse, it's hard to use the PM debugger, because you have to start the whole WPS (PMSHELL.EXE) with it, since XFLDR.DLL is no standalone application.

So I had to look for something else.

Those _Pmpf(("xxx")) thingies are for the magnificent PMPRINTF package by Dennis Bareis. These only display anything if the proper DEBUG_xxx #define's are set in include\setup.h (changed with V0.9.0). For the release version of XWorkplace, all these flags have been disabled, so no additional code is produced at all. You thus don't have to remove the commands to speed up XWorkplace, because this wouldn't make any difference.

Some files from the PMPRINTF package are included so that you can compile. The PM interface which actually displays the messages is not however. This has been written by Dennis Bareis. Last time I checked (March 13, 2001), this package was available at http://www.labyrinth.net.au/~dbareis/zips_fw/pmf96179.zip.

However, to really use PMPRINTF, you'll have to put some DLLs on your LIBPATH. See the PMPRINTF docs for details. I strongly recommend using this utility.

_Pmpf(("xxx")) uses regular printf syntax, except for those strange double brackets, which are needed because macros don't accept variable parameter lists otherwise.