使用 GlobalFlags 与 VS2010 调用 vsjitdebugger
我已经升级到Win7和VS2010。以前在 Win2K 和 VS2008 上,我使用 GlobalFlags 在启动时调试应用程序,只需将其调试器设置为 vsjitdebugger - 请参阅下面的屏幕截图。不幸的是,这不适用于我当前的设置 - 谷歌和搜索 SO 没有找到任何答案。
提前致谢。
更新:忘记提及我的全局标志设置似乎确实有一些效果 - 在命令行上运行我的命令会导致 Windows 说程序已崩溃 - 它在没有全局标志的情况下工作得很好。这让我认为我的调试器命令行不正确 - 但这只是一个猜测。我很想听听任何能做到这一点的人的意见。
替代文本 http://img825.imageshack.us/img825/3538/55489547.png< /a>
I've upgraded to Win7 and VS2010. Previously on Win2K and VS2008, I used GlobalFlags to debug an application on startup, simply by setting it's debugger to vsjitdebugger - see the screenshot below. Unfortunately, this doesn't work on my current setup - a google and search of SO haven't turned up any answers.
Thanks in advance.
UPDATE: Forgot to mention that my global flags settings do seem to have some effect - running my command on the command line causes Windows to say the program has crashed - it works just fine without the global flags. This is leading me to think my command line for the debugger is incorrect - but that's just a guess. I'd be interested in hearing from anyone who's got this to work.
alt text http://img825.imageshack.us/img825/3538/55489547.png
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
运行 64 位版本的 Windows 7?使用 32 位版本的 gflags.exe?
您也可以直接编辑注册表。 notepad.exe 的 .reg 文件示例:
Running the 64-bit version of Windows 7? Using the 32-bit version of gflags.exe?
You can also edit the registry directly. An example .reg file for notepad.exe:
在Win7上以管理员权限运行VS2010,“vsjitdebugger.exe”工作正常。
Run the VS2010 on Win7 with administrator privilege, "vsjitdebugger.exe" works fine.
看起来 Win7 中有一个我没有想到的额外步骤 - 它首先弹出“MyProgram 已停止工作”屏幕。如果你查看详细信息,它会说这是应用程序崩溃。
您将获得以下选项:
单击“调试”,然后弹出 vsjitdebugger 对话框,一切正常。
It looks like there's an extra step in Win7 which I wasn't expecting - it throws up a "MyProgram has stopped working" screen first. If you look at the details, it says it's an application crash.
You get the options:
Clicking debug then pops up the vsjitdebugger dialog and all is well.