Skip to contentSkip to navigationSkip to topbar
On this page

Debugger Integration with Flex - End User Guide


This is a guide on how to use the Debugger(link takes you to an external page) to troubleshoot uncaught exceptions and errors in Flex UI and Plugins. Found in your Twilio console, the Debugger contains a detailed log of activity within your application. This log can help you dive deeper and understand which Twilio resources were impacted (and by whom).

With the integration, you are able to access the following in the Debugger:

  • Uncaught exceptions from the Flex UI
  • console.error messages

Enabling Debugger Integration

enabling-debugger-integration page anchor

The debugger is enabled by default. You can enable or disable the Debugger Integration on the features page(link takes you to an external page) within Flex Admin.

FlexUI-Debugger.

Writing Logs to the Debugger

writing-logs-to-the-debugger page anchor

With the Debugger Integration enabled, any uncaught JavaScript exceptions will automatically be logged. These will include details on the exception, the user who was logged in, and the version of the Flex UI that is being used.

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 do not currently support additional levels of logging, like debug, log, info, and warn.


To get to the Error logs, open the console, click the Monitor tab and click on the Error logs under the Errors menu.

error-logs.

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

error-logs-shot.

Clicking on a debug event will give you 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.

Need some help?

Terms of service

Copyright © 2024 Twilio Inc.