You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today, a ThreadsHandler returns a Container<System.Threading.Thread> and debugger events send through the ID of the affected thread.
In a world where most of our backend is async we don't really have a specific thread for anything we're debugging (in PowerShell we technically do, but it's kind of hard to get to).
So if we want to send back a thread through the ThreadsHandler, the easiest thing to do is to create a dummy thread object to represent the debugged thread -- but if that's the case, we might be better off with an O#-defined object to represent a thread.
Today we send back an empty container and always set AllThreadsStopped and AllThreadsContinued, but that might not be a good way to go...?
The text was updated successfully, but these errors were encountered:
I also noticed the same issue. I think this is a bug in a code generator which confuses Omnisharp.Extensions.DebugAdapter.Protocol.Models.Thread with System.Threading.Thread.
This leads to a JSON serialization exception, so using the threads request crashes the application.
Today, a
ThreadsHandler
returns aContainer<System.Threading.Thread>
and debugger events send through the ID of the affected thread.In a world where most of our backend is async we don't really have a specific thread for anything we're debugging (in PowerShell we technically do, but it's kind of hard to get to).
So if we want to send back a thread through the ThreadsHandler, the easiest thing to do is to create a dummy thread object to represent the debugged thread -- but if that's the case, we might be better off with an O#-defined object to represent a thread.
Today we send back an empty container and always set
AllThreadsStopped
andAllThreadsContinued
, but that might not be a good way to go...?The text was updated successfully, but these errors were encountered: