Click or drag to resize

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: 2.9.0.1601 (2.9.0.1601)
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 Parallel Computing Server 2.9 API for .NET