Skip to contentSkip to navigationSkip to topbar
On this page

Debugger Integration with Flex



Overview

overview page anchor

You can use the Debugger(link takes you to an external page) to troubleshoot uncaught exceptions and errors in Flex UI and Plugins. You can access the Debugger in Twilio Console to view a detailed log of activity within your application. Using this log can help you better understand how Flex UI errors impacted your Twilio resources.

With the integration, you can access the following:

  • Uncaught exceptions from Flex UI
  • console.error messages

Turn on Debugger integration

turn-on-debugger-integration page anchor

Debugger integrations is turned on by default. To turn it off or back on, use the Debugger Integration setting on the Opt-in features(link takes you to an external page) page in Twilio Console.


Write logs to the Debugger

write-logs-to-the-debugger page anchor

With the Debugger Integration turned on, any uncaught JavaScript exceptions are logged automatically. These include details about an exception, the logged-in user, and the version of the Flex UI running when the exception occurred.

You can trigger custom debugger notifications through console.error statements included in your code.

console.error('Unable to connect to MyCRM: %s', myCRMUrl);
(warning)

Warning

We don't currently support additional levels of logging, like debug, log, info, and warn.


To view the error logs:

From Twilio Console, go to Monitor > Logs > Errors > Error logs.

error-logs.

Once in the error logs, you can dig into the details.

error-logs-shot.

Click on a debug event for a more detailed view of the event.

exception.

In addition to the user information contained within the notification, the Resource Sid represents the TaskRouter Worker for that user.


Now that you've integrated Flex with the Debugger, learn more about customizing the settings in the Debugger and other ways to debug your Flex applications: