Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Small RFC. Minimal stacktrace for Exceptions when frames are disabled #9434
Nim exceptions have wonderful stack traces in debug mode, but there is none in the release mode. While it is possible to enable stack traces in release mode, they quite pricey in terms of performance. Therefore I want to propose something more lightweight for release build when frames are disabled.
When frames are disabled: report just one level of stack trace. Idea is to fill in one StackTraceEntry object for Exception using lineinfo of the raise statement itself. This is definitely possible with minor changes to the codegen and might even possible to achieve with system library changes only.
I will implement it if there is no clear objects.