bugsnag-php icon indicating copy to clipboard operation
bugsnag-php copied to clipboard

Argument in stacktrace

Open jeroensmit opened this issue 6 years ago • 1 comments

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.

jeroensmit avatar Feb 11 '19 09:02 jeroensmit

Hi @jeroensmit, thanks for the feedback, I'll raise this ticket to our products team to consider.

Cawllec avatar Feb 11 '19 09:02 Cawllec