Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blazor Debugging Launch.json url property documentation #24393

Merged
merged 3 commits into from
Dec 21, 2021

Conversation

TanayParikh
Copy link
Contributor

@TanayParikh TanayParikh requested a review from guardrex December 21, 2021 20:07
Copy link
Collaborator

@guardrex guardrex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TanayParikh ... Check my grammar/style update to confirm that I didn't shift the meaning.

@guardrex
Copy link
Collaborator

guardrex commented Dec 21, 2021

btw @TanayParikh ... This is confusing. Why is this configurable? If the dev changes it, it doesn't launch at the right page/tab? ... then are they supposed to navigate to what they set this to manually by typing the URL they set for url into the browser's address bar? Nevermind ... I think I get it now.

@guardrex
Copy link
Collaborator

Ok ... maybe I get it. 😄 ... It's just saying that if this doesn't match where the app is configured to load (URL) then they'll get the about:blank. They need to match for it to open and debug at the right URL. 🤔

@guardrex guardrex merged commit dc71c43 into main Dec 21, 2021
@guardrex guardrex deleted the TanayParikh-patch-1 branch December 21, 2021 20:18
@TanayParikh
Copy link
Contributor Author

btw @TanayParikh ... This is confusing. Why is this configurable? If the dev changes it, it doesn't launch at the right page/tab? ... then are they supposed to navigate to what they set this to manually by typing the URL they set for url into the browser's address bar?

This url is used to launch the browser. The default is localhost:5001. If there's nothing at localhost:5001 then the browser opens the about:blank page. This can occur if the user changed the Properties/launchSettings.json to have a different application url. This behavior is documented in the blazor/tooling page.

Examine the Properties/launchSettings.json file and determine the URL of the app from the applicationUrl property (for example, https://localhost:7268). Note this value for use in the launch.json file.

In the launch configuration of the .vscode/launch.json file:

Set the current working directory (cwd) to the Server project folder.
Indicate the app's URL with the url property. Use the value recorded earlier from the Properties/launchSettings.json file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Debugging Blazor WASM in VSCode Holds Debug Session and Ports Open
2 participants