如何自动启动调试器以在 Windows 7 64 位上调试 32 位应用程序? [英] How to launch debugger automatically to debug 32 bit applications on Windows 7 64 bit?

查看:10
本文介绍了如何自动启动调试器以在 Windows 7 64 位上调试 32 位应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让 Windows 在启动应用程序时自动启动调试器(如 在 msdn 中描述) 但是我收到以下错误:

I'm trying to have Windows automatically start the debugger when an application is launched (as described in msdn) however I'm getting the following error:

未通知 Visual Studio 即时调试器应用程序已正确启动

The Visual Studio Just-In-Time Debugger was not notified that the application correctly started

快速搜索发现 这个人有同样的问题建议在哪里:

A quick search found this person with the same problem where the suggestion was:

如果您运行的是 Vista 或 Win7,则需要以管理员身份运行 vsjitdebugger,否则会出现该错误.

If you are running Vista or Win7 you need to run vsjitdebugger as an administrator or you will get that error.

我去了 C:WindowsSystem32 并在 vsjitdebugger.exe 属性的兼容性选项卡中检查了 Run this program as an管理员复选框.现在我收到以下消息

I went to C:WindowsSystem32 and in the compatibility tab of vsjitdebugger.exe's properties I checked the Run this program as an administrator check box. Now I'm getting the following message

请求的操作需要提升

紧随其后

无法打开此项目
它可能已被移动、重命名或删除.要删除此项目吗?

Can't open this item
It might have been moved, renamed, or deleted. Do you want to remove this item?

我不确定这是 64 位操作系统上的 32 位应用程序这一事实是否相关.

I'm not sure if the fact that this is a 32 bit application on a 64 bit OS is relevant.

推荐答案

您应该以管理员身份运行您的应用程序(不要将 vsjitdebugger.exe 设置为以管理员身份运行).然后您将收到安全警告提示,然后是正常列表以及可供选择的调试器.在我的情况下,我必须以管理员程序运行调试程序.

You should run your application as an administrator (don't setup vsjitdebugger.exe to run as administrator). Then you will be prompted with the security warning and after that normal list with debuggers to choose from. In my case I had to run as an administrator program which runs debugged program.

这篇关于如何自动启动调试器以在 Windows 7 64 位上调试 32 位应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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