We have implemented the "port": 0
feature. it will be available in the next update.
Note, that it is not necessary to specify "runtimeArgs"
with our extension. The launch profile would look like the following:
{
"name": "Launch Built-in server",
"type": "php",
"request": "launch",
"runtimeArgs": [
"-S",
"localhost:8000",
"-t",
"./php/center"
],
"port": 0,
"serverReadyAction": {
"action": "openExternally"
}
}
(https://docs.devsense.com/en/vscode/debug/launch-json#built-in-php-server)