在WinCE 7中启用调试区域

时间:2014-02-20 08:57:15

标签: debugging windows-ce zone

我是新手。我正在使用WinCE 7 VS 2008.我的操作系统是Windows 7.我想使用注册表启用调试区域。以前在Windows XP - WinCE 6中,我使用过它。但是,我不知道如何为特定模块启用调试区域,而不是在代码中编程。我尝试将其添加为注册表,

[HKEY_LOCAL_MACHINE\DebugZones]
       "OMAP GPIO"=dword:FFFF

其中OMAP GPIO是模块名称。

dpCurSettings是,

DBGPARAM dpCurSettings = {
    L"OMAP GPIO", {
        L"Errors",      L"Warnings",    L"Function",    L"Info",
            L"IST",         L"Undefined",   L"Undefined",   L"Undefined",
            L"Undefined",   L"Undefined",   L"Undefined",   L"Undefined",
            L"Undefined",   L"Undefined",   L"Undefined",   L"Undefined"
    },
    0x0003
};

我在代码中使用了这一行。

DEBUGMSG(ZONE_FUNCTION, (L"DEBUGZONE :+Am3xxGpioInterruptInitialize\r\n"));

但是,这不起作用。我检查了开发工作站注册表中的Pegasus条目。但是,我也找不到。请指导我怎么做。

更新

实际上,调试消息和调试区域位于静态库am3xx_device_gpio.lib中,在{d} SOURCELIBS

中包含am3xx_gpio.dll

这是因为am3xx_device_gpio.lib是常见的TI代码。以上注册表仅在am3xx_gpio.dll

中可用

我认为由于这个原因,它不会被打印出来。现在还能做些什么?

1 个答案:

答案 0 :(得分:1)

您确定模块名称是否正确? (我想这是DLL名称?OMAP GPIO.dll?)

实际上它应该启用调试区域。

尝试

[HKEY_LOCAL_MACHINE/DEBUGZONES] "OMAP GPIO"=DWORD:FFFF

(如果OMAP GPIO是模块名称。)

有关详细信息,请参阅以下链接:

  1. Debug messages and debug zones in Windows CE
  2. How To Enable DEBUGZONEs in the Registry?
相关问题