Debug Logs Viewer
To understand what happens on your org and make your development process clearer, you have the ability to analyze Salesforce log files. To get the maximum amount of useful information from the logs, use Debug Logs Viewer. In order to start working with this functionality, you should open a log file from the Logs Panel — double-click on the log file you want to explore.
The log file will be opened in the editor. Also, you can find these files in the Logs folder, which is placed in your project's folder.
All the functionality for analyzing large log files is present in the Debug Logs Viewer. The log file that you opened contains the messages of different events highlighted with colors, so it's easier to skip unneeded details.
Currently, such event types are highlighted in the Debug Log Viewer:
- anonymous Execution — marked in gray color,
- callouts — marked in yellow color,
- checkpoints — marked in lime color,
- errors — marked in red color,
- SOQL execution — marked in cyan color,
- system calls — marked in gray color,
- user debug entries — marked in magenta color.
In the Debug Logs Viewer, the logs are displayed in both the tree view and the line view in the same window. Above the usual chronological line view, you will see all the events arranged by their relationship of dependence to one another. In addition, your current position is highlighted in the line view whenever you change it in the tree view, so you will never get lost in the logs. With the help of these features, going through the logs becomes more convenient, while you are able to find necessary information faster.
Show Only User Debug Messages
An additional option of Debug Log Viewer is an ability to view only user debug entries. You can filter the log file to only your debug messages. After you check the box Show Only User Debug Messages at the top of the editor, the non-debug entries will be collapsed, but you will be able to expand them if needed and search through them without disabling the filter.
The option 'Show Only User Debug Messages' remembers its last state in the current session, so the setting is kept the same that you've selected previously. When you start the new session in The Welkin Suite, the setting for this option returns to the default state — the filter is unselected.
Show Only Error Messages
The option Show Only Error Messages is quite similar to the ability to show only user debug messages. It helps you to filter all the log data to only errors messages. When you check this box, all the rest entries are collapsed, but you are able to expand them if needed. In addition, all the errors and exceptions in your Log file are colored in red. You can easily see them in the Code Map in Scrollbar as well.
Go to source
The option Go to source easily lets you navigate to the source code right from the log file. Click on a necessary event and select the Go to source option from the context menu. You will be navigated to the code which execution caused this event in the log file. This action also can be done by the Cmd+D hotkey.
In this section:
This also may be useful: