📄 fdebug.c
字号:
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include "FDebug.h"
#if defined(__FDEBUG__)
FILE *debugfp;
void _fdebug_open()
{
debugfp= fopen("c:\\debug.txt" , "w" );
}
void _fdebug(char* pszFile, const char* pszFunc, unsigned int iLine, char *lpszFormat, ...)
{
char temp[1024], tmpStr[1024];
va_list args ;
sprintf(temp, "%s : %s[%d]__", pszFile, pszFunc, iLine);
va_start(args, lpszFormat);
vsprintf(tmpStr, lpszFormat, args);
fprintf(debugfp,"%s %s \r\n", temp, tmpStr);
fflush(debugfp);
va_end(args);
}
void _fdebug_close()
{
fclose(debugfp);
}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -