Fix wamr-ide debugger ignoring launch config (#2155)

The `DebugConfigurationProvider` was overwriting configurations provided
in `launch.json`. In particular, this for example prevented from specifying a
custom port for the debugger.

Example `launch.json`
```
{
    "configurations": [
        {
            "type": "wamr-debug",
            "request": "attach",
            "name": "Attach Debugger",
            "stopOnEntry": true,
            "attachCommands": [
                "process connect -p wasm connect://127.0.0.1:1237"
            ]
        }
    ]
}
```

Co-authored-by: Ben Riegel <benjuri@amazon.com>
This commit is contained in:
Ben
2023-05-10 05:47:43 +01:00
committed by GitHub
parent 28274bed34
commit ff0752b4ff
3 changed files with 25 additions and 45 deletions

View File

@ -171,7 +171,6 @@ export async function activate(context: vscode.ExtensionContext) {
/* register debug configuration */
wasmDebugConfigProvider = new WasmDebugConfigurationProvider();
wasmDebugConfigProvider.setDebugConfig(currentPrjDir, 1234);
vscode.debug.registerDebugConfigurationProvider(
'wamr-debug',