Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
Rethrow an exception - Testing exception stacktraces by Grant - Dev
If we do a simple throw, the stacktrace should show the nitty-gritty details:

   at NowWereInTheWeeds.DoSomething()
   at LessImportantButJustAsSpecial.DoSomething()
   at ImportantClass.DoSomething()
   at PreserveStack.Do()
   at Program.Main()

If we do an also-simple throw ex, the stacktrace is reset:

   at ResetStack.Do()
   at Program.Main()
Cached Result
Last Run: 8:19:05 am
Compile: 0.008s
Execute: 0.09s
Memory: 6.90Mb
CPU: 0.098s