WASM debug default browser is going to Edge (#26621)
parent
c735b07259
commit
46c33f949a
|
@ -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. |
|
| `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. |
|
| `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. |
|
| `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. |
|
| `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. |
|
| `webRoot` | Specifies the absolute path of the web server. Should be set if an app is served from a sub-route. |
|
||||||
|
|
|
@ -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.
|
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 current working directory to the `Server` folder.
|
||||||
* Sets the URL for the app to `https://localhost:7268`.
|
* 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
|
```json
|
||||||
"cwd": "${workspaceFolder}/Server",
|
"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 `{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.
|
* 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 current working directory to the `Server` folder.
|
||||||
* Sets the URL for the app to `https://localhost:7268`.
|
* 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
|
```json
|
||||||
"cwd": "${workspaceFolder}/Server",
|
"cwd": "${workspaceFolder}/Server",
|
||||||
"url": "https://localhost:7268",
|
"url": "https://localhost:7268",
|
||||||
"browser": "edge"
|
"browser": "chrome"
|
||||||
```
|
```
|
||||||
|
|
||||||
The complete `.vscode/launch.json` file:
|
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",
|
"request": "launch",
|
||||||
"cwd": "${workspaceFolder}/Server",
|
"cwd": "${workspaceFolder}/Server",
|
||||||
"url": "https://localhost:7268",
|
"url": "https://localhost:7268",
|
||||||
"browser": "edge"
|
"browser": "chrome"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue