在 VS2010 中使用 GlobalFlags 调用 vsjitdebugger [英] Using GlobalFlags to call vsjitdebugger with VS2010

查看:28
本文介绍了在 VS2010 中使用 GlobalFlags 调用 vsjitdebugger的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经升级到 Win7 和 VS2010.以前在 Win2K 和 VS2008 上,我使用 GlobalFlags 在启动时调试应用程序,只需将其调试器设置为 vsjitdebugger - 请参见下面的屏幕截图.不幸的是,这对我当前的设置不起作用 - 谷歌和搜索 SO 没有找到任何答案.

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.

提前致谢.

更新: 忘了提及我的全局标志设置似乎确实有一些影响 - 在命令行上运行我的命令会导致 Windows 说程序崩溃了 - 它在没有全局标志的情况下工作得很好标志.这让我认为我的调试器命令行不正确 - 但这只是一个猜测.我很想听听任何人的意见.

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.

替代文字 http://img825.imageshack.us/img825/3538/55489547.png

推荐答案

看起来在 Win7 中有一个我没有预料到的额外步骤 - 它首先抛出一个MyProgram 已停止工作"屏幕.如果您查看详细信息,它会说这是应用程序崩溃.

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.

您可以选择:

  • 在线查看解决方案并关闭程序"
  • 关闭程序"
  • 调试程序"

点击 debug 会弹出 vsjitdebugger 对话框,一切正常.

Clicking debug then pops up the vsjitdebugger dialog and all is well.

这篇关于在 VS2010 中使用 GlobalFlags 调用 vsjitdebugger的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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