如何调试跟踪错误?

若要调试跟踪检测的驱动程序的问题(例如跟踪日志文件中未显示的跟踪消息,即使启用提供程序),请将 WppDebug 宏定义添加到源代码。

WppDebug 支持旨在调试 WPP 的代码。 它跟踪注册和启用/禁用活动等操作。

任何 WppDebug 定义指令都将正常工作。 例如:

#define WppDebug(a,b) printf b, printf("\n");

若要调用例程,请使用以下格式:

WppDebug(level,(format,...));

不要将跟踪 WPP 操作的 WppDebug 宏与向调试器发送跟踪消息 的 WPP_DEBUG 宏混淆。