---
title: "FunctionToString"
description: "Allows the SDK to provide original functions and method names, even when those functions or methods are wrapped by our error or breadcrumb handlers. (default)"
url: https://docs.sentry.io/platforms/javascript/guides/cordova/configuration/integrations/functiontostring/
---

# FunctionToString for Cordova

*Class name: `Sentry.BrowserIntegrations.FunctionToString`*

This integration is enabled by default. If you'd like to modify your default integrations, read [this](https://docs.sentry.io/platforms/javascript/guides/cordova/configuration/integrations.md#modifying-default-integrations).

This integration allows the SDK to provide original functions and method names, even when those functions or methods are wrapped by our error or breadcrumb handlers.

```JavaScript
Sentry.init({
  integrations: [new Sentry.BrowserIntegrations.FunctionToString()],
});
```
