TaskEnvironmentAttachToDebugger Property

Gets or sets a value indicating whether to automatically attach the host processes to the debugger running the client submission code.
Namespace:  AGI.Parallel.Infrastructure
Assembly:  AGI.Parallel.Infrastructure (in AGI.Parallel.Infrastructure.dll) Version: 1.4.0.476 (1.4.0.476)
Syntax
public bool AttachToDebugger { get; set; }

Property Value

Type: Boolean
true automatically attach debugger; otherwise, false.
Examples
using (EmbeddedJobScheduler scheduler = new EmbeddedJobScheduler())
{
    scheduler.Connect();
    scheduler.CreateJob();
    Job job = scheduler.CreateJob();
    job.AddTask(new TaskThatNeedsToBeDebugged());

    // Set the AttachToDebugger to true
    job.TaskEnvironment = new SimpleTaskEnvironment();
    job.TaskEnvironment.AttachToDebugger = true;
    job.TaskEnvironment.DebuggerType = DebuggerType.Managed;
}
See Also

STK Scalability 1.4 API for .NET