Use new handlers

This commit is contained in:
Joshua "Yoshi" Askharoun
2025-12-06 01:49:36 -06:00
parent 57ccc2f4f6
commit 1668c3c2ec
@@ -43,7 +43,7 @@ public class IrisDebugAdapterServer : IDebuggerServer, IRemoteDebuggerState, IDi
{
Server.SendContinued(new()
{
ThreadId = Environment.CurrentManagedThreadId,
ThreadId = 0,
});
}
else if (value is InterpreterCommand.Break)
@@ -51,7 +51,7 @@ public class IrisDebugAdapterServer : IDebuggerServer, IRemoteDebuggerState, IDi
Server.SendStopped(new()
{
Reason = new("unknown"),
ThreadId = Environment.CurrentManagedThreadId,
ThreadId = 0,
});
}
}
@@ -81,11 +81,11 @@ public class IrisDebugAdapterServer : IDebuggerServer, IRemoteDebuggerState, IDi
.AddIrisDebugServices(this, Options.SymbolDir, Options.SourceDir)
)
// TODO: Consider replacing all WithHandler with AddSingleton
//.WithHandler<AttachHandler>()
.WithHandler<AttachHandler>()
//.WithHandler<DisconnectHandler>()
.WithHandler<BreakpointHandler>()
//.WithHandler<ConfigurationDoneHandler>()
//.WithHandler<ThreadsHandler>()
.WithHandler<ThreadsHandler>()
//.WithHandler<StackTraceHandler>()
//.WithHandler<ScopesHandler>()
//.WithHandler<VariablesHandler>()