Smart Step Into debugging in Rider
In a recent talk I gave about Rider’s debugger, one of the things I mentioned is that while writing code, we spend a lot of time in the debugger to validate our logic. Because of this reality, debugging should be as painless as possible. With Rider 2017.3 EAP, we’re introducing Smart Step Into to make debugging lines with multiple statements easier.
While in the debugger, we may sometimes reach a line of code that performs several method calls. Let’s take this line of code as an example:
PrintPeople(FilterPeople(people, BuildPredicate(person => person.Company.Country, "CZ")));
If we’d want to step into
FilterPeople(), we’d first have to step through
BuildPredicate() before we get to the method we want to debug:
That works, but it does bring some overhead by having to mentally context-switch through another method than the one we really wanted to debug.
Smart Step Into solves this problem by letting us pick the function we want to step into. We can invoke Smart Step Into from the Run | Smart Step Into menu or by pressing Shift+F7:
When selecting a method using Smart Step Into, other methods will be ignored until code execution reaches the method we are interested in. This helps us keep focus on the task at hand, instead of having to follow an entire call chain we’re not interested in.
Subscribe to Blog updates
Thanks, we've got you!
Another Look into the Future with Rider’s Predictive Debugger
In the 2023.2 release cycle, we’ve introduced the Predictive Debugger in ReSharper, which gives you predictions about code paths and variables beyond the current execution pointer. We’ve written extensively about its advantages compared to alternative debugging strategies like thorough thinking, log…
Visualize Entity Framework Relationships and Additional Query Analysis in ReSharper 2023.3
A lot of teams are using Entity Framework or EF Core to work with their database. As an Object-Relational Mapper (ORM), it bridges objects in code to a relational database model, so that as a developer you don’t have to worry too much about the actual database. We all know: that’s not entirely tr…
Automatically Analyze ASP.NET Core Performance With Dynamic Program Analysis
Slow web pages may make your users or customers abandon your web application, even before they’ve had a proper look at it. You’ve likely also been frustrated working with a web application that is slow to load. The good news is that the latest versions of ReSharper and JetBrains Rider’s Dynamic P…
OSS Power-Ups: MassTransit – Webinar Recording
The recording of our webinar, OSS Power-Ups: MassTransit, with Chris Patterson, is available. This was the thirteenth episode of our OSS Power-Ups series, where we put a spotlight on open-source .NET projects. Subscribe to our community newsletter to receive notifications about future webinars.…