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

Commit 3cbd98d

Browse files
committed
Fix modification exception in setBreakpoints.
1 parent 35baf7d commit 3cbd98d

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

Changelog.txt

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ Git: https://github.com/Unity-Technologies/vscode-unity-debug
66
Changes
77
-------
88

9+
2.4.1
10+
=====
11+
- Fix modification exception when setting breakpoints.
12+
913
2.4.0
1014
=====
1115
- Added support for attaching individual unity processes by use of commands.

UnityDebug/UnityDebugSession.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public override void Initialize(Response response, dynamic args)
192192
supportsSetVariable = true,
193193

194194
// This debug adapter does not support exception breakpoint filters
195-
exceptionBreakpointFilters = new dynamic[0]
195+
exceptionBreakpointFilters = new ExceptionBreakpointsFilter[0]
196196
});
197197

198198
// Mono Debug is ready to accept breakpoints immediately
@@ -456,7 +456,7 @@ public override void SetBreakpoints(Response response, dynamic args)
456456
SourceBreakpoint[] newBreakpoints = getBreakpoints(args, "breakpoints");
457457
var lines = newBreakpoints.Select(bp => bp.line);
458458
var breakpointsToRemove = breakpoints.Where(bp => !lines.Contains(bp.line)).ToArray();
459-
foreach (Breakpoint breakpoint in _session.Breakpoints)
459+
foreach (Breakpoint breakpoint in _session.Breakpoints.GetBreakpoints())
460460
{
461461
if (breakpointsToRemove.Any(bp => bp.line == breakpoint.Line))
462462
{

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "unity-debug",
33
"displayName": "Debugger for Unity",
4-
"version": "2.4.0",
4+
"version": "2.4.1",
55
"publisher": "Unity",
66
"description": "Unity debugger extension",
77
"engines": {

0 commit comments

Comments
 (0)