Choose any apex code snippet, press Ctrl+Alt+E or click HaoIDE
> Execute Anonymous
in the context menu, you will see the result, you should be aware, if anonymous code compile is failed, message will be shown in output panel, just after compile succeed, the executed result will be shown in the new view.
There has a log_levels
setting in the default settings to control the anonymous log level , If you want to change anonymous log levels, you can override it in your user settings.
- Click
HaoIDE
>Debug
>Track One
- Choose the user that you want to track and press enter
- Check the progress in the status bar until succeed message appeared
- Click
HaoIDE
>Debug
>Track Self
- Choose the user that you want to track and press enter
- Check the progress in the status bar until succeed message appeared
- Click
HaoIDE
>Debug
>Track All
- After confirmed, plugin will start to track debug logs for all users
- After track is finished, track result will be displayed in the output panel
- Click
HaoIDE
>Debug
>Fetch One
- Choose the user that you want to fetch and press enter
- After fetch is finished, debug log list will appear in the output panel
- Click
HaoIDE
>Debug
>Fetch Self
- Choose the user that you want to fetch and press enter
- After fetch is finished, debug log list will appear in the output panel
Setting Name | Default Value | Description |
---|---|---|
trace_flag |
|
Used to define the debug log level |
last_n_logs | 20 | Log number returned by fetching |
- Put the focus in the LogId got by fetch command, press alt and click left button, the debug log detail will be retrieved and displayed in the new view.
- Click
HaoIDE > Run Test Class
in the context menu or press ctrl+alt+t in opened test class file - You can get the Test Result and related coverage report after the test run async
- In the Test Result file, you can view the debug log or certain class/trigger code coverage via contest menu command
- The coverage information will be kept in
.config/coverages.json
cache file, when you executeview_code_coverage
command next time, plugin will read code coverage information from here
- Click
HaoIDE > Run Sync Test
in the context menu or press alt/command + shift + u, you can get the test run result and related coverage report - You cannot get certain class/trigger code coverage since Salesforce Tooling API does not return Correct code coverage now
- This feature just works when api version is >= 29.0
- In the context menu of open class or trigger, click
HaoIDE
>View Code Coverage
in the context menu, wait for the end of the progress on the status bar, you will see the code coverage percentage in the console and a new view with not covered highlight lines. - Put the focus in the ApexClass Name, press
alt
and click left button for twice, the code coverage of specified class will be retrieved and displayed in the new view.