开发者

Is it possible to call the JIT debugger window from a c# program?

开发者 https://www.devze.com 2022-12-14 11:24 出处:网络
I was wondering if it was possible via a line of code in C# program to interrupt the execution of the program and make appear the window whic开发者_JAVA百科h allows you to select a debugger to start d

I was wondering if it was possible via a line of code in C# program to interrupt the execution of the program and make appear the window whic开发者_JAVA百科h allows you to select a debugger to start debugging.

Anthony


Do you mean something like this:

if( System.Diagnostics.Debugger.IsAttached )
    System.Diagnostics.Debugger.Break ();
else
    System.Diagnostics.Debugger.Launch ();
0

精彩评论

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