Skip to content

Conversation

@thaystg
Copy link
Member

@thaystg thaystg commented Feb 1, 2024

Fixes this error when trying to debug using chrome as IDE and the BrowserDebugProxy is already started.

fail: DevToolsProxy[0]
      failed: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
         at System.Collections.Generic.Dictionary`2.ValueCollection.Enumerator.MoveNext()
         at Microsoft.WebAssembly.Diagnostics.MonoProxy.OnSourceFileAdded(SessionId sessionId, SourceFile source, ExecutionContext context, CancellationToken token, Boolean resolveBreakpoints)
         at Microsoft.WebAssembly.Diagnostics.MonoProxy.LoadStore(SessionId sessionId, Boolean tryUseDebuggerProtocol, CancellationToken token)
         at Microsoft.WebAssembly.Diagnostics.MonoProxy.LoadStore(SessionId sessionId, Boolean tryUseDebuggerProtocol, CancellationToken token)

@thaystg thaystg requested a review from ilonatommy as a code owner February 1, 2024 22:48
@ghost ghost added the area-Debugger-mono label Feb 1, 2024
@ghost ghost assigned thaystg Feb 1, 2024
@thaystg thaystg requested a review from lewing February 1, 2024 22:48
@ghost
Copy link

ghost commented Feb 1, 2024

Tagging subscribers to this area: @thaystg
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes this error when trying to debug using chrome as IDE and the BrowserDebugProxy is already started.

fail: DevToolsProxy[0]
      failed: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
         at System.Collections.Generic.Dictionary`2.ValueCollection.Enumerator.MoveNext()
         at Microsoft.WebAssembly.Diagnostics.MonoProxy.OnSourceFileAdded(SessionId sessionId, SourceFile source, ExecutionContext context, CancellationToken token, Boolean resolveBreakpoints)
         at Microsoft.WebAssembly.Diagnostics.MonoProxy.LoadStore(SessionId sessionId, Boolean tryUseDebuggerProtocol, CancellationToken token)
         at Microsoft.WebAssembly.Diagnostics.MonoProxy.LoadStore(SessionId sessionId, Boolean tryUseDebuggerProtocol, CancellationToken token)
Author: thaystg
Assignees: -
Labels:

area-Debugger-mono

Milestone: -

@thaystg
Copy link
Member Author

thaystg commented Feb 2, 2024

/backport to release/8.0-staging

@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2024

Started backporting to release/8.0-staging: https://github.com/dotnet/runtime/actions/runs/7756615076

@thaystg thaystg merged commit e3c25ee into dotnet:main Feb 5, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Mar 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants