开发者

.NET 4.0 Debugging Behavior

We recently migrated to VS 2010. We installed .NET 4.0 on our test machine. When we execute a console application that throws an unhan开发者_StackOverflowdled exception, we no longer see the exception message and stack trace printed to the console but instead see the message

An unhandled win32 exception occurred in something.exe [PID]. Just-In-Time debugging this exception failed with the following error: No installed debugger has Just-In-Time debugging enabled. In Visual Studio, Just-In-Time debugging can be enabled from Tools/Options/Debugging/Just-In-Time.

We do have the above setting enabled.

What do we need to do to return to the behavior we had previously?


According to the Just-In-Time Debugging check corresponding registry keys.

On my machine with Windows 7 x64:

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AeDebug]
"Debugger"="\"C:\\Windows\\system32\\vsjitdebugger.exe\" -p %ld -e %ld"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework]
"DbgManagedDebugger"="\"C:\\Windows\\system32\\vsjitdebugger.exe\" PID %d APPDOM %d EXTEXT \"%s\" EVTHDL %d"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜