WASM debug default browser is going to Edge (#26621)

pull/26618/head
Luke Latham 2022-08-03 14:14:56 -05:00 committed by GitHub
parent c735b07259
commit 46c33f949a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -1518,7 +1518,7 @@ The following launch configuration options are supported for the `blazorwasm` de
| --------- | ----------- |
| `request` | Use `launch` to launch and attach a debugging session to a Blazor WebAssembly app or `attach` to attach a debugging session to an already-running app. |
| `url` | The URL to open in the browser when debugging. Defaults to `https://localhost:5001`. If the app is running at a different URL, an `about:blank` tab launches in the browser. |
| `browser` | The browser to launch for the debugging session. Set to `edge` or `chrome`. Defaults to `chrome`. |
| `browser` | The browser to launch for the debugging session. Set to `edge` or `chrome`. Defaults to `edge`. |
| `trace` | Used to generate logs from the JS debugger. Set to `true` to generate logs. |
| `hosted` | Must be set to `true` if launching and debugging a hosted Blazor WebAssembly app. |
| `webRoot` | Specifies the absolute path of the web server. Should be set if an app is served from a sub-route. |

View File

@ -154,11 +154,11 @@ Use the [.NET command-line interface (CLI)](/dotnet/core/tools/) to execute comm
If Microsoft Edge is used and Google Chrome isn't installed on the system, add an additional property of `"browser": "edge"` to the configuration.
The follow example `.vscode/launch.json` file:
The following example `.vscode/launch.json` file:
* Sets the current working directory to the `Server` folder.
* Sets the URL for the app to `https://localhost:7268`.
* Changes the default browser from Google Chrome, which is the default browser, to Microsoft Edge.
* Changes the default browser from Google Chrome to Microsoft Edge.
```json
"cwd": "${workspaceFolder}/Server",
@ -1002,18 +1002,18 @@ Use the [.NET command-line interface (CLI)](/dotnet/core/tools/) to execute comm
* The `{SERVER APP FOLDER}` placeholder is the **`Server`** project's folder, typically `Server`.
* The `{URL}` placeholder is the app's URL, which is specified in the app's `Properties/launchSettings.json` file in the `applicationUrl` property.
If Microsoft Edge is used and Google Chrome isn't installed on the system, add an additional property of `"browser": "edge"` to the configuration.
If Google Chrome is preferred over Microsoft Edge, update or add an additional property of `"browser": "chrome"` to the configuration.
The follow example `.vscode/launch.json` file:
The following example `.vscode/launch.json` file:
* Sets the current working directory to the `Server` folder.
* Sets the URL for the app to `https://localhost:7268`.
* Changes the default browser from Google Chrome, which is the default browser, to Microsoft Edge.
* Changes the default browser from Microsoft Edge to Google Chrome.
```json
"cwd": "${workspaceFolder}/Server",
"url": "https://localhost:7268",
"browser": "edge"
"browser": "chrome"
```
The complete `.vscode/launch.json` file:
@ -1028,7 +1028,7 @@ Use the [.NET command-line interface (CLI)](/dotnet/core/tools/) to execute comm
"request": "launch",
"cwd": "${workspaceFolder}/Server",
"url": "https://localhost:7268",
"browser": "edge"
"browser": "chrome"
}
]
}