How do I debug a Blazor app with Rider?

Answered

When I run a Blazor app in Rider debug mode, it doesn't hit my breaking points. Actually the breaking points get sort of grayed out. The app runs fine in debug mode but I can't get it to hit my breaking points. I'm new to Rider and Blazor, by the way.

Thanks.

1
3 comments

Hello Dave, 

Would it be possible to provide an example showing the issue? Please also let me know what version of Rider you are using, your OS, more information about your app. Thank you in advance!

0

Sure.

I just created a brand new Blazor PWA app with the following dotnet command:

dotnet new blazorwasm -o HelloRider --pwa 


I set a breaking point on line 14 in the Counter component.

 

Then I clicked on the debug button in the top right corner. When the app runs in debug mode, I go to the Counter page and click on the button. It works but it doesn't hit this breaking point.

I get that No symbol instead of the red circle.

I just downloaded RIder for the trial. I will probably say goodbye to Visual Studio and VS Code and purchase RIder, but I really need to be able to debug Blazor apps going forward. I'm new to both Blazor and Rider so maybe something simple I'm missing.

I'm using a Microsoft Surface Book 2.

Here is the RIder version info:

JetBrains Rider 2020.2.1
Build #RD-202.6397.268, built on August 20, 2020
Licensed to Rider Evaluator
Expiration date: September 20, 2020
Runtime version: 11.0.7+10-b944.20 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
.NET Framework 4.0.30319.42000
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1466M
Cores: 4
Registry: debugger.new.debug.tool.window.view=true, ide.tree.horizontal.default.autoscrolling=false, performance.watcher.sampling.interval.ms=200, ide.borderless.tab.caption.in.title=false, ide.tooltip.showAllSeverities=true, show.diff.preview.as.editor.tab=true, light.edit.file.open.enabled=false, performance.watcher.unresponsive.interval.ms=1000, search.everywhere.settings=true, show.diff.preview.as.editor.tab.with.single.click=true, parameter.info.max.visible.rows=10, ide.win.file.chooser.native=true, vcs.log.show.diff.preview.as.editor.tab=true, search.everywhere.pattern.checking=false, ide.tooltip.initialDelay=0, ide.require.transaction.for.model.changes=false, ide.debug.in.title=true, rdclient.asyncActions=false
Non-Bundled Plugins: com.microsoft.vso.idea, PythonCore, com.jetbrains.rider.android

 

0

It is a known issue: RIDER-45261. We would appreciate it if you would upvote in order to bring increased awareness to the issue and watch for monitoring the progress.

0

Please sign in to leave a comment.