Search Results for

    Show / Hide Table of Contents

    Class DebugHelper

    Helps handle debug command-line arguments.

    Inheritance
    System.Object
    DebugHelper
    Namespace: McMaster.Extensions.CommandLineUtils
    Assembly: McMaster.Extensions.CommandLineUtils.dll
    Syntax
    public static class DebugHelper

    Methods

    | Improve this Doc View Source

    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.

    Declaration
    public static void HandleDebugSwitch(ref string[] args)
    Parameters
    Type Name Description
    System.String[] args

    The command line arguments

    | Improve this Doc View Source

    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.

    • Improve this Doc
    • View Source
    In This Article
    Back to top