如何在带有VS2008(Win7)的WinCE5设备上使用调试器
我正在尝试调试 WinCE 设备的应用程序。我的机器上安装了 VS2008(VS2010 旁边),但我无法在模拟器或设备上进行调试。我现在搜索了一段时间,但有人可以解释如何正确配置它或提供一个好的链接吗?
使用调试器时,它抱怨在设备上找不到 AppName\AppName.exe
。当将智能设备设置为 Windows CE
以连接到我的设备时,它只是说一段时间后无法连接。
我没有安装 ActiveSync,因为它不适用于 Win7。
I am trying to debug an application for WinCE devices. I got VS2008 installed on my machine (next to VS2010) but I cannot debug in emulator nor on the devices. I searched some time now but can anyone explain how to configure this properly or give a good link?
When using debugger it complains that AppName\AppName.exe
was not found on the device. When setting smart device to Windows CE
to connect to my device it simply says that it cannot connect after some time.
I do not have ActiveSync installed as it is not available for Win7.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是托管代码还是本机代码?如果是原生的,什么处理器架构(ARM、x86 等)?对于本机代码,您至少需要安装一个具有匹配架构的 SDK - 尽管确切的 SDK 实际上并不重要。
要建立调试器连接,请尝试将 corecon 位(conmanclient2.exe、cmaccept.exe 等)复制到设备并手动运行该设备,然后连接到 IP 地址。这适用于托管应用程序和本机应用程序,并且比尝试使用 WMDC/AS 管道更可靠。 这篇文章介绍了它 - 这是 2005 年的内容,但VS08中的过程是相同的。
Is this managed code or native code? If native, what processor architecture (ARM, x86, etc) ? For native code you need to at least have an SDK installed with the matching architecture - the exact SDK though doesn't actually matter.
To make a debugger connection, try copying the corecon bits (conmanclient2.exe, cmaccept.exe, etc) to the device an manually running that, then connecting to the IP address. This works for both managed and native apps and is way more reliable than trying to use the WMDC/AS pipe. This article covers it - it's for 2005, but the process in VS08 is identical.
对于 Vista 及更高版本,请使用 Windows Mobile 设备中心:
32 位 WMDC
64 位 WMDC
在您的计算机中安装适当版本的插件后设备并且它应该连接。
如果要调试已在运行的托管进程,则必须在运行该进程之前在设备上设置注册表标志。
如何:附加到托管设备进程
希望有帮助
For Vista and later use Windows Mobile Device Center:
WMDC for 32-bit
WMDC for 64-bit
After installing the approriate version plug in your device and it should connect.
If you want to debug a managed process that's already running you have to set a registry flag on the device before running the process.
How to: Attach to Managed Device Processes
Hope that helps