在 Vista 计算机上调试 XP 应用程序
我正在为 XP 和 Vista 构建 MFC 应用程序。 我在 XP 计算机上安装了 Visual Studio 2008,但我需要在 Vista 上调试该应用程序。 我怎样才能做到这一点? 我真的必须在 Vista 计算机上安装 Visual Studio 吗?
使用远程调试时,我假设所有可执行文件和库文件都必须位于我的 Vista 虚拟机中。 但我似乎可以将 MFC 调试 DLL 复制到 Vista VM,因此我不断收到并行配置错误。
我希望远程调试应用程序而无需复制任何文件,我该怎么做? 如果不能,如何在 Vista 计算机上安装 MFC DLL 而无需安装 Visual Studio?
注意:我使用 Virtual PC 在虚拟机上安装了 Vista。 我只是不知道如何在那里运行我的应用程序的调试版本。
I am building an MFC application for both XP and Vista. I have Visual Studio 2008 installed on the XP machine but I need to debug the application on Vista. How can I do that? Do I really have to install Visual Studio on a Vista machine?
When using remote debugging I assume that all executable and library files must be in my Vista virtual machine. But I can seem to copy the MFC debug DLLs to the Vista VM, and as a result I keep getting side-by-side configuration errors.
I would prefer to remote debug the application without having to copy any files, how can I do that? And if I can't, how can I install the MFC DLLs without having to install Visual Studio on the Vista machine?
Note: I have Vista installed on a virtual machine using Virtual PC. I just don't know how to run the debug version of my application there.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以安装VirtualPC(或其他虚拟化软件)并安装Vista作为虚拟系统,因此您不需要两台计算机。 对于这部分调试,您最好明确不安装 Visual Studio,以确保您的程序中不存在 Visual Studio 提供的某些隐藏依赖项。 此时,您想要测试应用程序的完全部署版本。
到目前为止,我发现针对 vista 进行开发的最大规则是确保您永远不向安装程序的同一文件夹写入任何内容。 改为写入应用程序数据文件夹。 这也是 XP 的规则,但在 Vista 中执行得更加严格。
You can install VirtualPC (or other virtualization software) and install Vista as virtual system, so you don't need two computers. For this part of the debugging, it probably better that you explicitly do not install visual studio to make sure there's not some hidden dependency in your program that visual studio provides. At this point you want to be testing the fully-deployed version of the app.
The biggest rule I've found so far for developing for vista is making sure that you never write anything to the same folder where the program is installed. Write to the Application Data folder instead. This was a rule for XP, too, but it's much more strictly enforced in vista.
如果您有 Visual Studio Pro 或 Team,则可以进行远程调试一枪。 只有一个安装在远程计算机上的小存根。
如果您想运行应用程序的调试版本,则还需要在虚拟 PC 上安装调试运行时文件。
If you have Visual Studio Pro or Team, you can give remote debugging a shot. There's just a tiny stub that gets installed on the remote computer.
If you want to run a debug build of your application, you will need to install the debug runtime files on the virtual PC as well.