Troubleshooting Bambdas

This guide helps you troubleshoot issues while writing Bambdas.

Compilation errors

When you're creating a Bambda, Burp highlights any compilation errors in real time. You must resolve these errors before you can apply your Bambda.

You can view compilation errors in the following ways:

Note

Compilation errors are detected based on the function and location of the Bambda. For example, if you're writing a view filter WebSockets Bambda, Burp checks that the code complies with the specific requirements for a WebSockets view filter.

Runtime errors

Runtime errors occur after a Bambda has been applied. If Burp detects any runtime errors, a warning appears in the relevant Burp tool.

To resolve a runtime error, edit the Bambda to view the error details. You can then make changes to the code, or debug the Bambda using the Logging interface.

Debugging Bambdas

You can use the logging interface to debug your Bambda by printing messages to the console. This can help you resolve runtime errors or issues in your code.

You can access the following functions:

To view messages generated using logToOutput and logToError: