-
Notifications
You must be signed in to change notification settings - Fork 110
Closed
Description
I am trying to interact with the "nodeDebugAdapter" debugger using the DAP protocol.
Send an initialization request and set the value of "AdapterId" and "PathFormat".
But the “args.adapterID” received by the server is undefined.The reason is that "AdapterId" and "adapterID” do not match
/*this is client code*/
var client = DebugAdapterClient.Create(options => {
options.WithInput(_process.StandardOutput.BaseStream).WithOutput(_process.StandardInput.BaseStream);
options.AdapterId = "nodejs";
options.PathFormat = "path";
});
await client.Initialize(cancellationToken);`
`
/*this is server code*/
initialize(args) {
this._adapterID = args.adapterID;
this._promiseRejectExceptionFilterEnabled = this.isExtensionHost();
this._supportsRunInTerminalRequest = args.supportsRunInTerminalRequest;
if (args.locale) {
localize = nls.config({ locale: args.locale })(__filename);
}
const capabilities = super.initialize(args);
capabilities.supportsLogPoints = true;
capabilities.supportsTerminateRequest = this.supportsTerminateRequest;
return capabilities;
}
`
Metadata
Metadata
Assignees
Labels
No labels