diff --git a/src/PowerShellEditorServices/Services/DebugAdapter/BreakpointSyncService.cs b/src/PowerShellEditorServices/Services/DebugAdapter/BreakpointSyncService.cs index bddb799ed..0e1696fd5 100644 --- a/src/PowerShellEditorServices/Services/DebugAdapter/BreakpointSyncService.cs +++ b/src/PowerShellEditorServices/Services/DebugAdapter/BreakpointSyncService.cs @@ -694,7 +694,9 @@ private static SyncedBreakpoint CreateFromServerBreakpoint(Breakpoint serverBrea if (clientBreakpoint.Location is not null) { kind = SyncedBreakpointKind.Line; - script = clientBreakpoint.Location.Uri.GetFileSystemPath(); + script = clientBreakpoint.Location.Uri.Scheme is "untitled" + ? clientBreakpoint.Location.Uri.ToString() + : clientBreakpoint.Location.Uri.GetFileSystemPath(); line = clientBreakpoint.Location.Range.Start.Line + 1; column = clientBreakpoint.Location.Range.Start.Character is int c and not 0 ? c : 0; }