使用Attach to process进行调试返回“Operation not supported”; [英] Debugging using Attach to process returns "Operation not supported"

查看:96
本文介绍了使用Attach to process进行调试返回“Operation not supported”;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我们有一台运行Windows CE 6 R2的设备,顶部带有C#应用程序。 C#应用程序调用本机dll。要调试这些P / Invoke调用,我们希望通过attach to proces进行调试。 C#应用程序是在Visual Studio 2005中开发的。

当我们尝试通过"附加到进程"连接到我们的设备时,使用以下参数:
传输:智能设备限定符:Windows CE 5.0设备
我们收到错误'无法连接到Windows CE 5.0设备。操作不受支持。未知错误0x89731003'

我们收到此错误,无视我们在"限定符"下拉列表中选择的内容。

我们有一个允许附加到托管的注册表项集应用程序(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft \.NETCompactFramework \Managed Debugger \ AttachEnabled )设置为1,但仍然无效。

有没有人有这个错误的经验或任何关于如何解决它的提示?

问候,
汤姆

Hi,

We have a device that is running  Windows CE 6 R2 with a C# application on top. The C# application calls into native dll's. To debug these P/Invoke calls, we would like to debug via attach to proces. The C# application is developped in Visual Studio 2005.

However, when we try to connect to our device via 'Attach to process', with following parameters:
Transport: Smart Device
Qualifier: Windows CE 5.0 device
we get the error 'Unable to connect to Windows CE 5.0 device. Operation not supported. Unknown error 0x89731003'

We get this error, irregardles of what we select in the 'Qualifier' drop down.

We have the registry key set that allows to attach to managed application (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETCompactFramework\Managed Debugger\AttachEnabled ) set to 1, but it still does not work.

Does anyone have experience with this error or any hints on how to fix it?

Regards,
Tom

推荐答案

我可以似乎看到你做错了什么,我会做同样的事情,实际上只是在几分钟前完成它并且工作正常。

但是,你能做的就是设置你的启动项目是本机DLL并配置本机DLL项目以启动托管应用程序。但是(除非你有回调)在P / Invoke调用之后,托管应用程序释放本机DLL并且调试过程停止...
I can't seem to see what you're doing wrong, I would do the exact same thing, and actually just did a few minutes ago and it worked fine.

But, what you can do is set your startup project to be the Native DLL and configure that native dll project to launch your managed application. But (unless you have callbacks) after a P/Invoke call, the managed application releases the native DLL and the debug process stops...


这篇关于使用Attach to process进行调试返回“Operation not supported”;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆