Class DebugHelper
- Namespace
- McMaster.Extensions.CommandLineUtils
- Assembly
- McMaster.Extensions.CommandLineUtils.dll
Helps handle debug command-line arguments.
public static class DebugHelper
- Inheritance
-
objectDebugHelper
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
argsstring[]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)