DebugView使用方法
1、DebugView是什么
DebugView是一个系统调试工具输出调试工具。DebugView可以捕获由Debug程序运行时输出的调试信息,使用Trace()和OutputDebugString()函数。
2、使用方法
在Debug版本的程序中调用Trace()或者OutputDebugString()。
a、OutputDebugString()或者Trace()。
b、在内核中调用Out_Debug_String或者DbgPrint或者_Dug_Print_Service
c、编写的程序为Debug版本,独立运行,不是在开发环境中运行。
3、例子
#include "stdafx.h"#include <tchar.h>
#include <stdlib.h>
#include "windows.h"#define DefineDebugViewint main()
{#ifdef DefineDebugViewOutputDebugString(_T("TestSting"));
#endifreturn 0;}
DebugView使用方法
1、DebugView是什么
DebugView是一个系统调试工具输出调试工具。DebugView可以捕获由Debug程序运行时输出的调试信息,使用Trace()和OutputDebugString()函数。
2、使用方法
在Debug版本的程序中调用Trace()或者OutputDebugString()。
a、OutputDebugString()或者Trace()。
b、在内核中调用Out_Debug_String或者DbgPrint或者_Dug_Print_Service
c、编写的程序为Debug版本,独立运行,不是在开发环境中运行。
3、例子
#include "stdafx.h"#include <tchar.h>
#include <stdlib.h>
#include "windows.h"#define DefineDebugViewint main()
{#ifdef DefineDebugViewOutputDebugString(_T("TestSting"));
#endifreturn 0;}