Skip to content

Parameter passing problem of DAP #473

@pengsongkun741

Description

@pengsongkun741

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions