-
Notifications
You must be signed in to change notification settings - Fork 49
Closed
Description
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=50000This 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.jsonContents 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
Labels
No labels