Skip to content

Commit 5ad22be

Browse files
authored
Merge pull request #418 from daviwil/fix-dscdebug
Fix usage of Enable-DscDebug -Breakpoint
2 parents 73d1ad5 + 1db5dda commit 5ad22be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PowerShellEditorServices/Session/Capabilities/DscBreakpointCapability.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ public async Task<List<BreakpointDetails>> SetLineBreakpoints(
5050
.Select(file => $"@{{Path=\"{file.Key}\";Line=@({string.Join(",", file.Value)})}}"));
5151

5252
// Run Enable-DscDebug as a script because running it as a PSCommand
53-
// causes an error which states that the Breakpoints parameter has not
53+
// causes an error which states that the Breakpoint parameter has not
5454
// been passed.
5555
await powerShellContext.ExecuteScriptString(
5656
hashtableString.Length > 0
57-
? $"Enable-DscDebug -Breakpoints {hashtableString}"
57+
? $"Enable-DscDebug -Breakpoint {hashtableString}"
5858
: "Disable-DscDebug",
5959
false,
6060
false);

0 commit comments

Comments
 (0)