📄 debug.cpp
字号:
#include <stdio.h>#include <stdlib.h>#include <stdarg.h>#include "debug.h"static int s_debugLevel = 0;void debug(int level,const char *msg,...){ if (level<=s_debugLevel) { va_list args; va_start(args, msg); vfprintf(stderr, msg, args); va_end(args); }}void setDebugLevel(int level){ s_debugLevel = level;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -