Is there currently a way to run a dotnet watch in debug mode in Rider? I.e if I make a change to the source, it'll hotreload or restart the app and reattach the debugger?
The dotnet watch is not fully support attaching with debugger, you can attach debugger on a running dotnet watch process in Run | Attach to process, but sometimes the debugger session will be dropped proactively by the dotnet watch process. That's why no IDEs implement the debug for dotnet watch currently.
Rider debugger allows hot reload on most of the project types. You don't have to use
dotnet watchall the times.https://www.jetbrains.com/help/rider/Hot_Reload.html#Make_changes_when_debugging
Also, our advocate creates a plugin for creating
dotnet watchrun profile.https://blog.jetbrains.com/dotnet/2022/09/12/jetbrains-rider-net-watch-run-configuration-plugin/
The
dotnet watchis not fully support attaching with debugger, you can attach debugger on a runningdotnet watchprocess in Run | Attach to process, but sometimes the debugger session will be dropped proactively by the dotnet watch process. That's why no IDEs implement the debug fordotnet watchcurrently.Yeah pretty much as I expected, Rider simply doesn't support it. This is all possible in Visual Studio.