为什么 Visual Studio 2008 中的 VM 调试器会抛出“无法检测到启动项目”?
我在 Visual Studio 2008 (VMWare Workstation 6.5.3) 中遇到 VM 调试器问题。当我尝试启动虚拟机调试时,调试器总是告诉我以下信息:
Error: Unable to detect the current startup project.
我只有一个启动项目,但我的解决方案中有几个其他项目。
调试器日志只说明了这一点:
27.10.2009 14:35:29:
27.10.2009 14:35:29: Debugging started...
27.10.2009 14:35:29: ERROR: pEnumerator->Reset()
27.10.2009 14:35:29: An error occurred in .\Connect.cpp at line 2369.
27.10.2009 14:35:29: ERROR: FindProject(pEV, startupName, pProject)
27.10.2009 14:35:29: An error occurred in .\Connect.cpp at line 2412.
27.10.2009 14:35:30: Error: Unable to detect the current startup project.
27.10.2009 14:35:30: ERROR: DoStart()
27.10.2009 14:35:30: An error occurred in .\Connect.cpp at line 549.
VMWARE-Workstation-Program 的日志没有显示任何看起来像是错误的内容。
我已经尝试构建一个新的解决方案并添加我现有的项目,但出现了相同的效果。我已经重新安装了 vmware-visual-studio-plugin。没有什么变化。
您也许知道问题是什么以及如何解决它吗?
问候,马丁
I have a problem with VM-Debugger in Visual Studio 2008 (VMWare Workstation 6.5.3). Always when i try to Start the VM-debugging the debugger tells me the following:
Error: Unable to detect the current startup project.
I only have one startup-project but there are several other projects are in my solution.
The debugger-log says only this:
27.10.2009 14:35:29:
27.10.2009 14:35:29: Debugging started...
27.10.2009 14:35:29: ERROR: pEnumerator->Reset()
27.10.2009 14:35:29: An error occurred in .\Connect.cpp at line 2369.
27.10.2009 14:35:29: ERROR: FindProject(pEV, startupName, pProject)
27.10.2009 14:35:29: An error occurred in .\Connect.cpp at line 2412.
27.10.2009 14:35:30: Error: Unable to detect the current startup project.
27.10.2009 14:35:30: ERROR: DoStart()
27.10.2009 14:35:30: An error occurred in .\Connect.cpp at line 549.
The logs of VMWARE-Workstation-Program say nothing that seems like an error.
I already have tried to build a new solution and add my existing projects, but the same effect appears. I already have re-installed the vmware-visual-studio-plugin. There was noch change.
Do you perhaps know what's the problem and how it could be fixed.
Greetings, Martin
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看来这是一个已知问题。然而,据我所知,VMWare 尚未发布针对此问题的修复程序,即使两年以来已有相关报道。
可能您的启动项目位于解决方案文件夹下。在这种情况下,解决方法是将您的启动项目放置在解决方案的主级别。
根据解决方案的结构,此解决方法可能有用,也可能不起作用。
对我来说,即使使用这种解决方法,VM-Debugger 也可以重用来工作。在我的解决方案中,VM-Debugger 仅适用于在新解决方案上创建的项目(任何解决方案上的第一个项目)。由于我们从解决方案中删除了该项目,因此无论我们做什么,VM-Debugger 都不起作用。
It appears that this is a known issue. However, as far I know, VMWare has not released a fix for this even when there have been reports about this since 2 years.
May be your startup project is under a solution folder. On this case, a workaround is to place your startup project at the main level of your solution.
Depending on the structure of your solution, this workaround may be useful or may not work.
For me, even with this workaround, VM-Debugger reuses to work. On my solution, VM-Debugger only worked with the project that is created on a fresh solution (the very, very first project on any solution). Since we removed that project from our solution, it doesn't matter what we do, VM-Debugger simply does not work.
“还有一个小注意事项:如果您安装 VMWare 6.5,它会将 F6 重新映射到“在虚拟机中开始调试”,从而导致出现“无法检测当前启动项目”错误对话框。要更正此问题,请重新将 F6 映射回 Build.BuildSolution。”
(取自 http://mark.michaelis.net/博客/VisualStudioKeyboardShortcutsForCompilingMSDNFlashDec292008.aspx)
也许这会有所帮助。
"One more minor note: If you install VMWare 6.5, it will re-map F6 to "Start debugging in a virtual machine," causing an "Unable to detect the current startup project" error dialog to appear. To correct this, re-map F6 back to Build.BuildSolution. "
(taken from http://mark.michaelis.net/Blog/VisualStudioKeyboardShortcutsForCompilingMSDNFlashDec292008.aspx)
Maybe this will be helpful.