---
title: Capturing function call arguments
description: Configure PHP to include function arguments in error backtraces.
url: https://docs.honeybadger.io/lib/php/errors/capturing-function-call-arguments/
---

Sometimes it’s helpful to see what arguments a function was called with, so you can replicate the issue and figure out the cause of the error. By default, Honeybadger will automatically include function arguments when rendering the backtrace on your dashboard. However, on some versions of PHP, you may need to enable this.

PHP 7.4 and later comes with the [zend.exception\_ignore\_args](https://www.php.net/manual/en/ini.core.php#ini.zend.exception-ignore-args) setting in the `php.ini` file. This setting is designed to protect you from accidentally divulging sensitive information to the outside world. When this setting is set to “On”, function arguments won’t be included in traces.

If you expose your stack traces to outside users, you may want to keep this as “On”. However, if your traces are only sent to your logs and trusted services like Honeybadger, it’s typically safe to set this to “Off”. If you’d like Honeybadger to capture function arguments, you’ll need to set this to “Off”.

To do this:

* Locate your ini file by running `php --ini`.

* Open the ini file and change the value of `zend.exception_ignore_args` to “Off”

  ```ini
  ; Allows to include or exclude arguments from stack traces generated for exceptions
  ; Default: Off
  ; In production, it is recommended to turn this setting on to prohibit the output
  ; of sensitive information in stack traces
  zend.exception_ignore_args = Off
  ```

---

## Try Honeybadger for FREE

Intelligent logging, error tracking, and Just Enough APM™ in one dev-friendly platform. Find and fix problems before users notice.

[Start free trial](https://app.honeybadger.io/users/sign_up)

[See plans and pricing](https://www.honeybadger.io/plans/)
