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

[Debugging] Breakpoint is only hit on the first load #307

Open
xperiandri opened this issue Jun 12, 2023 · 6 comments
Open

[Debugging] Breakpoint is only hit on the first load #307

xperiandri opened this issue Jun 12, 2023 · 6 comments

Comments

@xperiandri
Copy link
Contributor

I created a project from the template and put breakpoints into update

But only the breakpoint on line 100 is hit and only once.

image

Is it possible to fix this and make breakpoints always hittable?

@Tarmil
Copy link
Member

Tarmil commented Jun 13, 2023

That would probably be an issue with Blazor itself, I don't think there's anything that can be done about this within Bolero. That being said, there must be something specific to your situation, as I've definitely been able to break into my SetPage update every time in the past.

@xperiandri
Copy link
Contributor Author

Do we need to create an issue in ASP.NET Core repo?

@xperiandri
Copy link
Contributor Author

@dim-37 confirmed the issue on his PC

@xperiandri
Copy link
Contributor Author

xperiandri commented Jun 15, 2023

@Tarmil you miss

      "dotnetRunMessages": true,
      "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",

in launchSettings.json

@Tarmil will you accept a PR that generates launchSettings.json the same as in Blazor?
like

{
  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "http://localhost:18346",
      "sslPort": 44372
    }
  },
  "profiles": {
    "HelloBolero.Server": {
      "commandName": "Project",
      "dotnetRunMessages": true,
      "launchBrowser": true,
      "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      },
      "applicationUrl": "https://localhost:4463;http://localhost:4466"
    },
    "IIS Express": {
      "commandName": "IISExpress",
      "launchBrowser": true,
      "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    }
  }
}

@xperiandri
Copy link
Contributor Author

@Tarmil do you approve such PR?

@Tarmil
Copy link
Member

Tarmil commented Aug 19, 2023

Sorry for the delayed response, but sure, go ahead and submit it!

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

No branches or pull requests

2 participants