English 中文(简体)
单体演播室:__debugbreak() 确实提供了分解节目的选择。
原标题:Vistual Studio: __debugbreak() doesn t offer the option of debugging a program

On most of my machines if I have a __debugbreak(); statement in my program Windows will pop up a dialog saying "dummyService.exe has stopped working. Windows can checkonline for a solution to the problem" and shows three options underneath: - "Check online for a solution and close the program" - "Close the program" - "Debug the program"

如果你想要减少由其他方案发起的服务,那是非常有益的。 我不记得做了任何特别的事情,以把这一行为带上我的系统。 在另一个拥有类似配置的机器上,当这项服务启动时,我没有获得与这三种选择相同的通常的辩证,相反,辩证只是说“血压服务”。 外界停止了工作。 视窗正在检查解决问题的办法,显示进展障碍。 没有选择。 在几秒之后,进展节奏停止,第二次方言“你是否希望就该问题提供更多信息?

This happens on Windows 7 Enterprise SP1 with Visual Studio Ultimate SP 1 installed. I suspect that this machine is missing either some registry setting or some options in Visual Studio that enables this debugger attach behavior.

Any tips on how to fix this annoying behavior would be greatly appreciated.

感谢!

Florin

问题回答

You need to set visual studio (or any other debugger) as the default JIT debugger. This can be done via tools -> options -> debugging -> Just-In-Time, then selecting native and managed and clicking ok





相关问题
Eclipse: Hover broken in debug perspective

Since upgrading Eclipse (Galileo build 20090920-1017), hover in debug no longer displays a variable s value. Instead, hover behaves as if I were in normal Java perspective: alt text http://...

IIS 6.0 hangs when serving a web-service

I am having issues with one of our web-services. It works fine on my development machine (win XP) whether I host it as a separate application or using cassini from Visual studio. Once I deploy on the ...

Tips for debugging a made-for-linux application on windows?

I m trying to find the source of a bug I have found in an open-source application. I have managed to get a build up and running on my Windows machine, but I m having trouble finding the spot in the ...

Asp.Net MVC - Problem returning a model to the view

I ve recently started using the Areas functionality of the Preview2 and it was working ok until I needed to return a Model to the view. Controller: public ActionResult ForgotPassword() { return ...

Unable to generate PDB files in Visual Studio 2005

For most assemblies, I m able to generate their respective .pdb files. However, I ve got one project that isn t generating their .pdb files. I ve made sure that it on debug mode and that the project ...

热门标签