1.DbgView
支持C++程序直接调试传递信息!
接口:
BOOL DebugTrace(char * lpszFormat,...)
{
static HWND hwnd = ::FindWindowA(NULL,"DbgView");
if(!IsWindow(hwnd))
hwnd = ::FindWindowA(NULL,"DbgView");
if(hwnd)
{
static char szMsg[512];va_list argList;
va_start(argList, lpszFormat);
try
{
vsprintf(szMsg,lpszFormat, argList);
}
catch(...)
{
strcpy(szMsg ,"DebugHelper:Invalid string format!");
}va_end(argList);
DWORD dwId = GetCurrentProcessId();
::SendMessage(hwnd,WM_SETTEXT,dwId,(LPARAM)(LPCTSTR)szMsg);//需要对消息处理不能用PostMessage
}
return TRUE;
}2.windbg
参考1:http://www.cppblog.com/fwxjj/archive/2008/01/18/41424.html
参考2:http://www.cnblogs.com/happyhippy/archive/2007/04/08/710933.html
3.Procmon(进程监控)
Filemon+Regmon
可以检查进程对文件及注册表的操作
参考:http://hi.baidu.com/chenshake/blog/item/6bc28e13f4dafc846438db18.html
4.Depends
查看可执行文件链接库信息
及链接库使用函数信息