Attaching a debugger to a running process in Vista or Windows 7 using Debugger.Break ()

When you come across the Debugger.Break () statement in Vista, you will get this message instead:

"SomeProcess.exe has encountered a user-defined breakpoint."

If you click the parameters in the correct order, you can connect your debugger. if you do not, you will not. How to get Windows to give you an Attach dialog every time?

+3
source share
1 answer

There is a registry entry that forces this behavior.

This registry entry is located in [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\ DbgJITDebugLaunchSetting].

16. 2, JIT .

http://bphillips76.spaces.live.com/blog/cns!F9B548E4C21D6166!364.entry

+4

Source: https://habr.com/ru/post/1725796/


All Articles