Please add application-level setting to hide stack trace in catch blocks

Description

This is just a minor annoyance, but when troubleshooting, I rarely use the stack trace. The error message and line number are the most important pieces of information, but because the catch struct is ordered by name, I always have to scroll past the (very long) stack trace to see the line number. I would like to have an application-level setting, in application.cfc, but possibly backed up at the web and/or server level as well, that hides this. The following might be a solution too.

try { } catch (any e, boolean hideStackTrace) { }

Activity

Zac Spitzer 11 June 2021 at 16:52

We discussed changing the cfcatch to an ordered struct too, so dumps would be also nicer, so message, detail and tag context comes before stacktrace

John Wilson 11 June 2021 at 16:16

That’s correct. Good trick, and that may be enough.

Zac Spitzer 11 June 2021 at 15:31

one trick you can do is echo(cfcatch) I assume you’re dumping cfcatch?

https://trycf.com/gist/9e32dfe5679b97b0e535f18fd274056d/lucee5?theme=monokai

Details

Assignee

Reporter

Labels

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Priority

Created 11 June 2021 at 14:25
Updated 11 June 2021 at 16:52