tags:

views:

36

answers:

1

Hello, 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 which allows you to select a debugger to start debugging.

Anthony

+5  A: 

Do you mean something like this:

if( System.Diagnostics.Debugger.IsAttached )
    System.Diagnostics.Debugger.Break ();
else
    System.Diagnostics.Debugger.Launch ();
Frederik Gheysels
Thank you very much that was exactly what I was looking after.
BlueTrin
Mark it answered then?
JonB
@JonB: sorry totally forgot !
BlueTrin