You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The variable `Input` will contain your input as a long raw string.
102
-
* If stuck you can set the `DebugInput` variable at the top of the constructor, and it will overwrite `Input` variable, so you won't need to change all your references.
103
105
* The extension method `SplitByNewLine()` will do exactly that, example: `string[] lines = Input.SplitByNewLine()` will split your input into lines for enumeration.
104
106
107
+
### Using DebugInput
108
+
* Real inputs are stored in a file named `input`; for debug inputs, simply store them at same level in a file `debug`.
109
+
* Both input files are loaded at runtime, but you must toggle the DebugInput on to use it, as shown below.
110
+
```diff
111
+
- public Day07() : base(07, 2015, "")
112
+
+ public Day07() : base(07, 2015, "", true)
113
+
{
114
+
115
+
}
116
+
```
117
+
* Setting `Debug = true` within the constructor body also works fine.
118
+
105
119
### Using .NET Core
106
120
Simply swap out the target framework in `AdventOfCode.csproj`.
0 commit comments