Debugging
When working locally or testing the widget, you may want to enable the debug mode.
The debug mode adds the following:
- Displays a debug block at the bottom of your widget
- Adds granular logs into the developer console
If debug mode has been activated, per default production payments will still be performed, unless it has been configured otherwise. Read more about it here.
Add the following snippet to enable debug mode:
Alternatively you may also enable debug mode by adding #widgetdebug
to the URL.
This enables debug tools at the bottom of the widget with various useful helpers
and inspection views:
Debugging Slots
Debugging slots is useful when you want to get more information about the different components rendered in your Tamaro Widget. Click here to read more about slots.
Set the following configuration option to debug slots
Debugging Error Messages
In order to debug the error messages of the form fields present in your Tamaro Widget, use the following snippet: