Exploring exception stack traces with ReSharper and Rider
We have all experienced bugs that throw exceptions in our applications. Using ASP.NET and getting a “yellow screen of death” (YSOD) with an exception message and stack trace? Using .NET Core and seeing stack traces printed to log files?
With ReSharper and Rider, we can explore and navigate stack traces from these exceptions better within the IDE. Let’s take a look at using the Stack Trace Explorer!
The experience for working with Stack Trace Explorer to examine an exception stack trace is very similar in ReSharper and Rider. If you want to work with the explorer window in Visual Studio with ReSharper, you can use the ReSharper | Tools | Browse Stack Trace… menu or the Ctrl+E, T shortcut (Visual Studio keyboard scheme).
When an exception stack trace is found on the clipboard, Stack Trace Explorer will show it. From the Stack Trace Explorer, we can jump to the line of code referenced, as shown below. We can also wrap long lines in the explorer.
The experience is the same in Rider! We can use the Tools | Analyze Stack Trace… menu selection to view the explorer window or again use the Ctrl+E, T shortcut.
Working with the exceptions and the stack traces associated with them has never been easier to do with either .NET product you work with!
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 …