Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit 0870dd9

Browse files
committed
Fixing dictionary access violation when assigning breakpoints.
1 parent 27f1e92 commit 0870dd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UnityDebug/UnityDebugSession.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*---------------------------------------------------------------------------------------------
1+
/*---------------------------------------------------------------------------------------------
22
* Copyright (c) Microsoft Corporation. All rights reserved.
33
* Copyright (c) Unity Technologies.
44
* Licensed under the MIT License. See License.txt in the project root for license information.
@@ -445,7 +445,7 @@ public override void SetBreakpoints(Response response, dynamic args)
445445
var l = ConvertClientLineToDebugger(clientLines[i]);
446446
if (!lin2.Contains(l)) {
447447
var id = _nextBreakpointId;
448-
_breakpoints.Add(id, _session.Breakpoints.Add(path, l));
448+
_breakpoints[id] = _session.Breakpoints.Add(path, l);
449449
// Program.WriteLine("added bpt #{0} for line {1}", id, l);
450450
}
451451
}

0 commit comments

Comments
 (0)