bugsnag-php
bugsnag-php copied to clipboard
Argument in stacktrace
Description
I would like access arguments from the stacktrace inside the notification callback, which is currently not possible.
It's clear that this is a design choice atm given the following code:
// Reduce memory usage by omitting args and objects from backtrace
$backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS & ~DEBUG_BACKTRACE_PROVIDE_OBJECT);
It would be nice if there was a config option to change this.
If you also see a benefit in this or would suggest a different solution, I am happy to provide a PR.
Hi @jeroensmit, thanks for the feedback, I'll raise this ticket to our products team to consider.