Lambda expression breakpoints and debugger watches in Rider
Note: make sure to check out our series about Rider’s debugger!
Lambda expression breakpoints
When placing a breakpoint on a line with multiple statements, for example where one is a lambda expression, Rider will ask us whether we want to pause program execution on the entire statement, or just on the lambda:
When we then start the debugger, Rider will break on every execution of the lambda (tip: for large collections you may want to look into dependent breakpoints). This allows us to inspect variables within the lambda’s context:
Lambda expressions in debugger watches
Rider’s debugger now provides support for lambda expressions when adding Watches (Alt+Insert).
Depending on the underlying type, this may execute a database query or enumerate an
IEnumerable. Once the debugger evaluates and executes the expression, it visualizes the results:
Download Rider and give it a try! We’d love to hear your feedback.
Subscribe to Blog updates
Creating Custom AI Prompts
AI has swept through the software development industry like a wildfire. So people want to learn how to best use AI in their day to day tasks. In this post we’ll take a look at how to write custom prompts for use with the JetBrains AI Assistant in ReSharper and Rider so you can make the most of AI.&n…
12 Debugging Techniques In JetBrains Rider You Should Know About
Twelve must know debugging features in JetBrains Rider every developer should know.
Interceptors – Using C# 12 in Rider and ReSharper
Welcome to our series, where we take a closer look at the C# 12 language features and how ReSharper and Rider make it easy for you to adopt them in your codebase. If you haven’t yet, download the latest .NET 8 SDK and update your project files! In this series, we are looking at: Primary …