Currently, a debug adapter extension can specify a program in it's package.json and users can use the debug adapter extension without any extension code required. However, in this setup, vscode will always start its own instance of the program specified in "program" in the debug adapter's package.json. For remote debugging, an instance of the debug adapter will have already been started and will be running remotely on a specific host/port. VSCode currently doesn't seem to support connecting to a remote instance of a debug adapter without wiriting extension glue code. Ideally, we could set "host" and "port" options in launch.json which would automatically instruct vscode to instantiate an instance of DebugAdapterServer with the given host and port instead of DebugAdapterExecutable so that it connects to a remote instance of the debug adapter instead of trying to start it locally.
Currently, a debug adapter extension can specify a program in it's package.json and users can use the debug adapter extension without any extension code required. However, in this setup, vscode will always start its own instance of the program specified in "program" in the debug adapter's package.json. For remote debugging, an instance of the debug adapter will have already been started and will be running remotely on a specific host/port. VSCode currently doesn't seem to support connecting to a remote instance of a debug adapter without wiriting extension glue code. Ideally, we could set "host" and "port" options in launch.json which would automatically instruct vscode to instantiate an instance of
DebugAdapterServer with the given host and portinstead ofDebugAdapterExecutableso that it connects to a remote instance of the debug adapter instead of trying to start it locally.