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).
7 Replies
Are you running in debug mode?
yes, tried it with release as well
Usually you shouldnt try debugging in release mode
Anyway can you show more of your code? we might get some idea
solution > properties > build
debug symbol = PDB file, portable across platform
after checking devtool in chrome browser, this shows
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