Table of Contents

Class DebugHelper

Namespace
McMaster.Extensions.CommandLineUtils
Assembly
McMaster.Extensions.CommandLineUtils.dll

Helps handle debug command-line arguments.

public static class DebugHelper
Inheritance
object
DebugHelper

Methods

HandleDebugSwitch(ref string[])

Pauses the application until the debugger is attached when '--debug' is passed in as the first argument.

The pause times out at 30 seconds and continues execution.

public static void HandleDebugSwitch(ref string[] args)

Parameters

args string[]

The command line arguments

HandleDebugSwitch(ref string[], int)

Pauses the application until the debugger is attached when '--debug' is passed in as the first argument, with a maximum wait time in seconds.

public static void HandleDebugSwitch(ref string[] args, int maxWaitSeconds)

Parameters

args string[]

The command line arguments

maxWaitSeconds int

Maximum number of seconds to wait. Set to 0 or less for infinite waiting.