ptvsd.adapter should support debugServer in launch.json #1556
ptvsd.adapter package currently only communicates with the IDE over stdin/out, as is usual for DAP. However, this is inconvenient for testing and debugging, since it requires it to be registered as a debugger extension with VSCode.
To simply this, we can use the
This requires the adapter to support an incoming socket connection. It does not need to be a true server - it only has to listen for and accept a single connection, at the very beginning, where it currently does this:
Since it still needs to work in stdin/out mode by default, this should be configurable via a command line switch that accepts the port number.