Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

Debugging your Function

Console Debugging

If you are actively working on your Function, you can show live logs for debugging by loading the Function page:

All invocation and logs will stream to your browser in near-realtime.

The logs are not persisted, and only show up while you are on the Function page.

Logs are limited to 500 characters.

Here's an example:

✗ curl 

Functions console.log example

As you can see, Twilio Functions streamed the start, end and console.log output of my function into the Twilio console.

Monitoring for failures

If your Function returns an error in response to a Twilio Webhook then you will find this under the Debugger. Note: The debugger also supports searching by URL, so you could search for all errors/warnings relating to your function.

Rate this page:

Need some help?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.