{"id":17592,"date":"2019-02-26T16:39:10","date_gmt":"2019-02-26T16:39:10","guid":{"rendered":"https:\/\/blog.jetbrains.com\/dotnet\/?p=21805"},"modified":"2019-02-26T16:39:10","modified_gmt":"2019-02-26T16:39:10","slug":"exploring-exception-stack-traces-resharper-rider","status":"publish","type":"dotnet","link":"https:\/\/blog.jetbrains.com\/zh-hans\/dotnet\/2019\/02\/26\/exploring-exception-stack-traces-resharper-rider","title":{"rendered":"Exploring exception stack traces with ReSharper and Rider"},"content":{"rendered":"<p>We have all experienced bugs that throw exceptions in our applications.\u00a0Using ASP.NET and getting a \u201cyellow screen of death\u201d (YSOD) with an\u00a0exception message and stack trace? Using .NET Core and seeing stack traces printed to log files?<\/p>\n<p>With ReSharper and Rider, <strong>we can explore and navigate stack traces from these exceptions better within the IDE<\/strong>. Let&#8217;s take a look at using the Stack Trace Explorer!<\/p>\n<p><!--more--><\/p>\n<p>The experience for working with Stack Trace Explorer to examine an exception stack trace is very similar\u00a0in ReSharper and Rider. If you want to work with the explorer window in Visual Studio with ReSharper, you can use the\u00a0<strong>ReSharper | Tools | Browse Stack Trace&#8230;<\/strong> menu or the\u00a0<kbd>Ctrl+E, T<\/kbd>\u00a0shortcut (Visual Studio keyboard scheme).<\/p>\n<p><strong>When an exception stack trace is found on the clipboard<\/strong>,\u00a0Stack Trace Explorer will show it. From the Stack Trace Explorer, we can\u00a0<strong>jump to the line of code referenced<\/strong>,\u00a0as shown below. We can also wrap long lines in the explorer.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-21841\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2019\/02\/dotnet-StackTraceExplorer-ReSharper2.png\" alt=\"Stack Trace Explorer in ReSharper\" width=\"800\" height=\"600\" data-gif-src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2019\/02\/dotnet-StackTraceExplorer-ReSharper2.gif\" \/><\/p>\n<p><strong>The experience is the same in Rider!<\/strong> We can use the\u00a0<strong>Tools | Analyze Stack Trace&#8230;<\/strong> menu selection to view the explorer window or again use the <kbd>Ctrl+E, T<\/kbd> shortcut.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-21843\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2019\/02\/dotnet-StackTraceExplorer-Rider2.png\" alt=\"Stack Trace Explorer in Rider\" width=\"800\" height=\"600\" data-gif-src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2019\/02\/dotnet-StackTraceExplorer-Rider2.gif\" \/><\/p>\n<p>Working with the exceptions and the stack traces associated with them has never been easier to do with\u00a0either .NET product you work with!<\/p>\n<p><strong>Download\u00a0<a href=\"https:\/\/www.jetbrains.com\/rider\/download\" target=\"_blank\" rel=\"noopener\">Rider 2018.3.3<\/a>\u00a0or <a href=\"https:\/\/www.jetbrains.com\/resharper\/download\/\" target=\"_blank\" rel=\"noopener\">ReSharper 2018.3.3<\/a> and give them a try!<\/strong>\u00a0We&#8217;d love\u00a0to hear your feedback!<\/p>\n","protected":false},"author":774,"featured_media":0,"comment_status":"open","ping_status":"open","template":"","categories":[1401],"tags":[2029,46,1978,2083],"cross-post-tag":[],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/dotnet\/17592"}],"collection":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/dotnet"}],"about":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/types\/dotnet"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/users\/774"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/comments?post=17592"}],"version-history":[{"count":0,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/dotnet\/17592\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media?parent=17592"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/categories?post=17592"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/tags?post=17592"},{"taxonomy":"cross-post-tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/cross-post-tag?post=17592"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}