Visual studio 2008 如何在Visual Studio中查看Windows Mobile 6中的标准输出?

Visual studio 2008 如何在Visual Studio中查看Windows Mobile 6中的标准输出?,visual-studio-2008,windows-mobile-6,Visual Studio 2008,Windows Mobile 6,我正在使用VisualStudio2008调试一个WindowsMobile6.5应用程序,如果我能在程序运行时获得控制台输出就好了。如何在Visual Studio IDE中从模拟器上运行的代码中读取printf的输出?Windows Mobile既没有控制台也没有控制台输出。您可以安装控制台,然后 但对于调试,我希望使用这些 使用DEBUGMSG或RETAILMSG代替printf。例如: DEBUGMSG(1,(L“函数x:Lasterror为0x%08x\n”,GetLastError(

我正在使用VisualStudio2008调试一个WindowsMobile6.5应用程序,如果我能在程序运行时获得控制台输出就好了。如何在Visual Studio IDE中从模拟器上运行的代码中读取printf的输出?

Windows Mobile既没有控制台也没有控制台输出。您可以安装控制台,然后

但对于调试,我希望使用这些

使用DEBUGMSG或RETAILMSG代替printf。例如:

DEBUGMSG(1,(L“函数x:Lasterror为0x%08x\n”,GetLastError())

您还可以稍后将调试附加到正在运行的应用程序,然后观看VisualStudio输出窗口以查看调试消息