File name and line number when the application terminates #798
lauler1
started this conversation in
Suggestions
Replies: 2 comments 4 replies
-
From
Though I've never seen it work. |
Beta Was this translation helpful? Give feedback.
4 replies
-
For MSVC, with
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For debugging, it could be highly beneficial to display the file name and line number when the application terminates due to an assertion failure, contract violation, or out-of-bounds access. This would provide more informative feedback than a generic message. For example, instead of a message like:
It would be more helpful to have a message such as:
Bounds safety violation in file.cpp:123: out-of-bounds access attempt detected terminate called without an active exception Aborted
Is there an existing mechanism to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions