Debugging code - Rider Essentials

preview_player
Показать описание
With the debugger in Rider, you can attach to a new or existing process, and place breakpoints to pause the application and see what is going on while executing your code.

In the debugger, you can inspect variables, the current call stack, step over/into specific methods, and more. The debugger supports all .NET frameworks, .NET Core, Mono, Xamarin, Unity, ASP.NET and ASP.NET Core, in standalone apps, web apps and unit tests.

### Run Configurations

Debugging starts with Run Configurations, where you specify which project to run or debug.

When first creating or loading a project in Rider, a default run configuration is created, based on the project type, so minimal configuration is required to get started. In fact, for most application types, pressing the F5 keyboard shortcut should be sufficient to launch the debugger.

### Breakpoints and Source Stepping

Breakpoints let you suspend the program execution at specific statement. You can then analyze variables values, call stack, and other program parameters, evaluate expressions, and step through the program. There are different breakpoint types in the Rider debugger.

You can step through code, and use tools like smart step into to debug nested calls.

Once your application is suspended, you can use the variables pane to get a closer look at the current state of your program. Make use of Pin to Top to customize how values are displayed without having to change your code.

### See Also

Рекомендации по теме
Комментарии
Автор

New things I have learnt:
10:50
11:50
14:00
18:20

onatkorucu
Автор

Why do you need an extra window to analyze stacktraces? In Intellij this works in the run output window for Java/Kotlin.

cyril
Автор

Hi when debugging in Rider
How do we view an document as xml or html similar to VS String Visualizer dialog box

in visual studio there is option to view a document as xml or html in the watch window --- String Visualizer dialog box

ave
Автор

How do I attach IIS process for debugging ?

shriramjaju
Автор

When I try to evaluate a recursive expression while debugging, it's crashed and says: "Process is terminated due to StackOverflowException". When I do the exactly same thing in Visual Studio, it works like a charm. How can I fix it in Rider?

P.S

I've already

hasan_shans
Автор

cool, what font are you using in the text editor ?? thanks

carlosalarcon
Автор

Unfortunately, for Rider on Windows F9 is bound to another command.
But in my case (default installation of Rider) this hotkey is Ctrl+F8

DjonNIK
Автор

How to i create rider apps and driver apps and admin panel create..plz create one video and upload

vloggerabjal
Автор

Awesome product, it’s a shame that support is horrible

davidmccollough
Автор

Very helpful walkthrough... but please stop saying "additionally too". Additionally is quite enough.

andrewc.stringer