When encountering a Debugger.Break() statement on Vista, you will get this message instead:
"SomeProcess.exe has encountered a user-defined breakpoint."
If you click options in the right order, you might be able to attach your debugger. if you don't, you won't. How do you force Windows to give you the Attach dialog every time?
There is a registry entry that forces this behavior.
This registry setting is located at [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\.NETFramework\\ DbgJITDebugLaunchSetting]
.
It has a default value of 16. Change it to 2 and the JIT debugger dialog will be displayed immediately.
http://bphillips76.spaces.live.com/blog/cns!F9B548E4C21D6166!364.entry
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.