Samsung / netcoredbg

NetCoreDbg is a managed code debugger with GDB/MI, VSCode DAP and CLI interfaces for CoreCLR.
MIT License
838 stars 103 forks source link

`InitializedEvent` before `InitializeResponse` #161

Closed GniLudio closed 3 weeks ago

GniLudio commented 10 months ago

The Debug Adapter Protocol specifies that InitializedEvent occurs after the InitializeRequest has returned: Initialized Event

adapters sends initialized event (after the initialize request has returned)

But that's not the case for the Netcoredbg, as you can see in the logs:

-> (C) {"type":"request","command":"initialize","arguments":{"pathFormat":"path","clientID":"vscode","clientName":"Visual Studio Code","adapterID":"coreclr","locale":"en","linesStartAt1":true,"columnsStartAt1":true},"seq":1}
<- (E) {"body":{"capabilities":{"exceptionBreakpointFilters":[{"filter":"all","label":"all"},{"filter":"user-unhandled","label":"user-unhandled"}],"supportTerminateDebuggee":true,"supportsCancelRequest":true,"supportsConditionalBreakpoints":true,"supportsConfigurationDoneRequest":true,"supportsExceptionFilterOptions":true,"supportsExceptionInfoRequest":true,"supportsExceptionOptions":false,"supportsFunctionBreakpoints":true,"supportsSetExpression":true,"supportsSetVariable":true,"supportsTerminateRequest":true}},"event":"capabilities","seq":"1","type":"event"}
<- (E) {"body":{},"event":"initialized","seq":"2","type":"event"}
<- (R) {"body":{"exceptionBreakpointFilters":[{"filter":"all","label":"all"},{"filter":"user-unhandled","label":"user-unhandled"}],"supportTerminateDebuggee":true,"supportsCancelRequest":true,"supportsConditionalBreakpoints":true,"supportsConfigurationDoneRequest":true,"supportsExceptionFilterOptions":true,"supportsExceptionInfoRequest":true,"supportsExceptionOptions":false,"supportsFunctionBreakpoints":true,"supportsSetExpression":true,"supportsSetVariable":true,"supportsTerminateRequest":true},"command":"initialize","request_seq":1,"seq":"3","success":true,"type":"response"}
gbalykov commented 3 weeks ago

This should be fixed in latest release. Feel free to reopen if you see any more related issues.