Class DebugHelper
Helps handle debug command-line arguments.
Inheritance
System.Object
    DebugHelper
  Inherited Members
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
  Namespace: McMaster.Extensions.CommandLineUtils
Assembly: McMaster.Extensions.CommandLineUtils.dll
Syntax
public static class DebugHelper
  Methods
| Improve this Doc View SourceHandleDebugSwitch(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.
Declaration
public static void HandleDebugSwitch(ref string[] args)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String[] | args | The command line arguments  | 
      
HandleDebugSwitch(ref String[], Int32)
Pauses the application until the debugger is attached when '--debug' is passed in as the first argument, with a maximum wait time in seconds.
Declaration
public static void HandleDebugSwitch(ref string[] args, int maxWaitSeconds)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String[] | args | The command line arguments  | 
      
| System.Int32 | maxWaitSeconds | Maximum number of seconds to wait. Set to 0 or less for infinite waiting.  |