CDebug
所属分类:其他小程序
开发工具:Visual C++
文件大小:45KB
下载次数:25
上传日期:2007-05-30 14:03:56
上 传 者:
mqakgn
说明: 一套调试时用于显示的开发包,用于VC++可将调试信息在运行时发送给调试器窗口
(set of debugging time for the show's development kits, can be used for debugging VC at runtime information sent to the debugger window)
文件列表:
CDebug (0, 1998-10-07)
CDebug\CDebug (0, 2000-05-03)
CDebug\CDebug\CDebug.cpp (5335, 2000-05-03)
CDebug\CDebug\CDebug.h (1198, 2000-05-03)
CDebug\CDebug\Debug.exe (28672, 2000-05-03)
CDebug\Debug (0, 2000-05-03)
------------------------------------------------------------------------------
Program : Visual C++ Custom Debug Monitor 1.0
Files : CDebug.cpp CDebug.h Debug.exe
Author : Daniel Chirca
Email : D.Chirca@finsiel.ro
Version : 1.0
------------------------------------------------------------------------------
Program description
------------------------------------------------------------------------------
CDebug class implements for Visual C++ more or less the functionality
that Visual Basic provides, i.e. the posibility
to insert into your C++ source code calls like Debug.printf(...), and
watch the messages in a separate window (Immediate window), without
the need to work with the Debug version of the project.
Using the program
------------------------------------------------------------------------------
- Insert into your Visual C++ project the CDebug.cpp and CDebug.h files
- Create a global instance of the CDebug class, for example:
CDebug Debug;
(don't forget the include statement: #include "Cdebug.h")
- insert your debug messages anywhere you like:
Debug.Printf0(...); or
Debug.Printf1(...); or
Debug.Printf2(...); or
Debug.Printf3(...);
- run the Debug.exe program (a nice ideea is to put it into
your Tools menu from IDE environment), select the "Options"
button to customize his behaviour, then press the "Start" button.
- run your project.
- watch your messages...
Notes
------------------------------------------------------------------------------
- The Debug.printfx (where x=0, 1, 2, 3) functions accepts the same
arguments as the printf function does (formatting, ...)
- x(=0, 1, 2, 3) means the message level:
printf0 sends level 0 messages
printf1 sends level 1 messages
printf2 sends level 2 messages
printf3 sends level 3 messages
- Use the "Options" button from Debug.exe to customize
which messages you want to intercept...
Other Notes
------------------------------------------------------------------------------
- You are free to modify the source code in CDebug.cpp and CDebug.h anyway you want,
but please send me an e-mail if you do it.
Special thanks
------------------------------------------------------------------------------
I want to give thanks to Cecil A. Galbraith, from CustomSoft,
from which I took the ideea to develop my own debug utility.
Dan
May 2000
近期下载者:
相关文件:
收藏者: