开发者

.NET 4.0 Debugging Behavior

开发者 https://www.devze.com 2023-01-02 20:14 出处:网络
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

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

精彩评论

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