C
C#10mo ago
Metalkon

❔ Blazor WebAsm (.NET6) Breakpoints No Longer Working

I had them working a few months ago before I took a break from the project but now they simply don't work at all. They used to work only on microsoft edge (had help with setting it up) and now i'm struggling to test my frontend blazor code (the json string works on swagger but cannot properly test whats going wrong because of no breakpoints). Anyone have an idea on what I should do with this situation to figure out how to get them working again? I don't even know where to begin. Not sure if its my project, visual studio, my browser, or something else. https://github.com/Metalkon/Fantasy-Web-App/tree/auth-refreshtokens/Fantasy%20Blazor
10 Replies
JakenVeina
JakenVeina10mo ago
when does this code run? Blazor WASM has never supported breakpoints on startup and from my understanding, debugger support has always been its best with Chrome, strangely enough
Accord
Accord10mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Metalkon
Metalkon10mo ago
It's a passwordless auth setup that only uses email. Logging in sends an email to the user, which contains a magic link for this page in the screenshot with the email/code in it's url. This page grabs the informaiton from the current url and sends that http request to confirm login and recieve jwt/refresh. As soon as the page is loaded it runs the method for the request.
JakenVeina
JakenVeina10mo ago
so, this method runs immediately on load of the page? Blazor WASM does not support breakpoints on startup the .NET Runtime has to bootstrap within the browser, and then establish a socket connection to the debugger, in order for breakpoints to work I.E. breakpoints do not work until after your app bootstraps itself if they were working before, you probably have a bit of a race condition going on
Metalkon
Metalkon10mo ago
so it should work if i'm testing without oninitialized I assume and the page is already loaded?
Metalkon
Metalkon10mo ago
tried breakpoint again with a test button that does everything and im getting this
JakenVeina
JakenVeina10mo ago
what are we looking at? that comes up in lieu of a breakpoint?
JakenVeina
JakenVeina10mo ago
no idea
Accord
Accord10mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts
❔ Representing a custom map using GeoJSON data instead of a map of the globe. Is it possible?I was wondering if it were possible to create a custom map not of the Earth and use GeoJSON to creat❔ RecyclableMemoryStreams and Sending a Byte ArrayI am utilizing `RecyclableMemoryStream` to pool my memory streams in my networking project, but the ❔ What is the purpose of `ModelBindingContext.Model`, `ModelName`, and `ModelBinderAttribute.Name`?The docs are very unclear about this. If I should set `ModelBindingContext.Result` to `ModelBindingR❔ System.Numerics.Vector<double> limited to 2 components with NativeAOT instead of 4Hi! Im using the mentioned Vector struct for double Vectors and have seen that using NativeAOT it on❔ SSH.Net library using in C# App questionHello all, it is no problem to connect to an ssh server and run commands and copy files to the remot❔ how do i use discord webhooks in a console app?title❔ MSSQL server is not connecting to server please help me.TITLE: Connect to Server ------------------------------ Cannot connect to DESKTOP-C2CJAPC. -------❔ 100 Day Coding ChallengeSo for something called the gold dofe I need to a skills section for 18 months which can essentially❔ OpenIddict Tokens' Availability Depends On Request's OriginI'm using ASP.NET Core with OpenIddict authentication as the backend of my website. On the frontend,❔ EF Core DistinctBy alternativeHey guys, is there like no way to use a DistinctBy alternative with EF Core? I tried this: ```csharp