How to use "Logs" for debugging
Sometimes you need to do some debugging to understand why something unexpected is happening (debugging). Here you'll learn how to do this using event logs.
Last updated
Sometimes you need to do some debugging to understand why something unexpected is happening (debugging). Here you'll learn how to do this using event logs.
Last updated
You can see the event logs by opening the "Logs" card in the "Debug" sub-menu.
Here you can filter by log type just selecting the "Pages", "User Input", "Computed", or "Actions" tabs.
Refreshing: To refresh the logs card just click the refresh icon at the top right corner of the card.
Live mode: To activate the live mode just click the lightning icon. When active you'll see it green and new events are going to be shown automatically.
To delete all logs just click on the "Clear logs" icon in the top right corner by the "Refresh" icon. You'll then need to confirm deleting by clicking "Yes" in a popup warning.
To activate the computed field logs recording you need to:
Go to the "Computed" tab.
Click on the "Start recording CFs" icon at the top right corner, right by the "Live mode" lightning icon.
Once activated the recording would continue until you stop it by clicking the same button again. While recording is active the icon would be red.
To open the snapshot of a specific event you just need to click the "View User Data Snapshot" placed inside the event summary card. By clicking on any value inside the snapshot you'll automatically get a copy of that variable value to your clipboard.
Computed field logs have 2 snapshots, one to see the user data after the CF execution and another to see how the user data state was right before