Skip to content

Support configuration when in Server Mode #227

@thegecko

Description

@thegecko

We have a use case running cdt-gdb-adapter in a remote containerised environment and exposing a socket to control the debug interface by running a command of the form:

node debugTargetAdapter.js --server=50000

This works well, but requires the connecting client to specify the program to be debugged (in launch mode) or the local port to attach to (in attach mode).

It would be ideal if configuration of the environment was isolated within the container via environment variables or by passing a config file location as a further switch when running debugTargetAdapter.js e.g.:

node debugTargetAdapter.js --server=50000 --config=config.json

Contents of config.json:

{
    "request": "attach",
    "port": 50000
}

or

{
    "request": "launch",
    "program": "/path/to/my/app"
}

Is this a valid addition and would there be a better/easier way to implement it?

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