home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Borland Programmer's Resource
/
Borland_Programmers_Resource_CD_1995.iso
/
utils
/
snoopy13
/
snoopy.doc
next >
Wrap
Text File
|
1995-05-18
|
4KB
|
116 lines
Snoopy Version 1.3
Release date: 17.11.1994
(C)1994 by Heiko Boch
I. Snoopy - what it is
Windows has build-in debugging functions, even the retail
version has them. Windows API functions send parameter error
messages when they are called with wrong arguments (for example
an invalid window handle).
Snoopy is a program that stays in background, while "snooping"
for such events. It will record errors, parameter errors and
debug output. Additionally it records exit codes of ending
tasks.
II. What you need to run Snoopy
Snoopy is a debug monitor for Windows 3.1 - so what will you
need? At least, you will need a 386 or better (but who runs
Windows on a smaller system...)
III. How to install Snoopy
Copy Snoopy into any directory and run it when ever you need it.
You may want to put it into the Autostart group.
If you run Snoopy as an icon it will become rainy, when an error
or debug output occurs.
If you want to log the Snoopy session into a file, you can put
the following entry into your WIN.INI file:
[Snoopy]
logfile=c:\windows\snoopy.log
Of course you can choose any valid filename.
By default, Snoopy traps OutputDebugString() attempts to write
to device AUX, since these cause error messages on normal
Windows systems. If you have installed other debug tools, you
might want Snoopy to pass output to AUX. In that case, add the
entry trapDebugOutput=0 to the [Snoopy] section in your WIN.INI
file.
IV. Additional WIN.INI entries
You can disable one ore more types of messages with entries in
your WIN.INI file:
showOutStr=0 -> disables debug output
showLogError=0 -> disables error output
showLogParamError=0 -> disables parameter error output
showStartTask=0 -> disables start task messages
showExitTask=0 -> disables exit task messages
showDelModule=0 -> disables delete module messages
showStartDll=0 -> disables start dll messages
V. Disclaimer
THIS SOFTWARE IS PROVIDED "AS IS". THERE IS NO WARRANTY, WETHER
EXPRESS NOR IMPLIED. THE AUTHOR DOES NOT ACCEPT ANY LIABILITIES
WITH RESPECT TO THIS PROGRAM. USE THIS PROGRAM ON YOUR OWN RISK!
Originally, I wrote Snoopy for my own purposes. But since it has
provided help to somebody else, I decided to make it public
available. I do not know if it works with Windows for Workgroups
or Windows NT.
VI. Copyright
You are allowed to use this version of Snoopy for free.
You may distribute the program to others as long as you do not
charge any fee and as long as there are no changes made with
the program and this document.
You may not include this program with a commercial product
without a written permission of the author.
VII. Contacting the author
Feel free to send me any comments about Snoopy. But please, don't
ask me about the meaning of error messages or how to remove their
reasons.
Write to: Heiko Boch
Alter Schulweg 5
35579 Wetzlar
Germany
Internet: boch@rbg.informatik.th-darmstadt.de
VIII. A word about the recorded errors
Snoopy will associate every error with a loaded program module.
there might be problems:
1.) The error might occur in a DLL, the program uses.
In that case, the program module name is shown, not
the name of the DLL.
2.) A program may have registered some type of hook
procedure and produces an error while processing an
hook call. In that case Snoopy records the name of
the actual module. This might be the erroneous
program or not.
IX. Debug functions in Windows 3.1 retail version
void OutputDebugString(LPCSTR);
void LogError(UINT err, void FAR* lpInfo);
void LogParamError(UINT err, FARPROC lpfn, void FAR* param);
void DebugBreak(void);
X. Trademarks - just to keep lawyers happy
Windows is trademark of Microsoft Corp. (You already knew that?)
The name "Snoopy" and the associated beagle may or may not be
trademark of any comic publisher. This program is called so,
because it snoops for debug information and you know, every
Windows program needs it's own icon ;-)