C
C#10mo ago
Karethaelle

The breakpoint will not currently be hit. No symbols have been loaded for this document

anyone knows how to fixed or have encountered "The breakpoint will not currently be hit. No symbols have been loaded for this document"? Thanks Blazor WASM, .net 8, visual studio 2022 v17.9.2 tried: uncheck optimize, restart application, clean, rebuild, created a new blazor wasm empty project (same issue).
No description
7 Replies
SpReeD
SpReeD10mo ago
Are you running in debug mode?
No description
Karethaelle
KarethaelleOP10mo ago
yes, tried it with release as well
TheRanger
TheRanger10mo ago
Usually you shouldnt try debugging in release mode Anyway can you show more of your code? we might get some idea
Karethaelle
KarethaelleOP10mo ago
No description
Karethaelle
KarethaelleOP10mo ago
solution > properties > build debug symbol = PDB file, portable across platform
Karethaelle
KarethaelleOP10mo ago
after checking devtool in chrome browser, this shows
No description
Karethaelle
KarethaelleOP10mo ago
debugger works now after changing launchSettings.json from { "profiles": { "DxBlazorClient": { "commandName": "Project", "launchBrowser": true, "nativeDebugging": false } } } to { "iisSettings": { "windowsAuthentication": false, "anonymousAuthentication": true, "iisExpress": { "applicationUrl": "http://localhost:65283", "sslPort": 44398 } }, "profiles": { "IIS Express": { "commandName": "IISExpress", "launchBrowser": true, "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } } } } what is this for and why doesn't the debugger work on the first one? I just saw it's different from a new project and tried to copy-paste it
Want results from more Discord servers?
Add your server