Debugging Your Deployed Joule

You might run into errors when calling your deployed Joule that you didn't see when running it locally. Looking at your Joule's log will usually indicate what the problem was so you can fix it. This document walks you through debugging deployed Joules.

Learn how to run and test your Joule locally.

Writing to your logs

Calls to console.log() from your Joule will display in your log files. Here's the code if you want to see what's contained in the event attribute which is passed into your Joule.

exports.handler = function(event, context) {

Catching unexpected errors

Syntax errors and exceptions are automatically written to your Joule's log file. There's nothing extra you need to do for them to show up when you view your logs.

Viewing remote logs

Remote logs contain any errors your Joule encounters and any console.log() calls. Go to your Joule's page to access the logs for your Joule and you'll find a few links to view its logs. You can view logs for any duration of time going back from the present.

Here's an example of what you would see if you had console.log(event); in your Joule.