#02 ALRUNNER: EXPORT DIAGNOSTICS

ALRunner is a Visual Studio Code extension that, among others, has a powerful feature that allows to export the “Problems” panel content into a csv file.

Practical example

1. Install ALRunner from the Extensions Marketplace in Visual Studio Code.

Install ALRunner from the Extensions Marketplace in Visual Studio Code.

2. Enable the Code Analyzers (AppSourceCop, CodeCop, UICop, PerTenantExtensionCop) in your settings.json:

  • User Settings: File > Preferences > Settings or
  • Workspace Settings: .vscode\settings.json.

Enable the Code Analyzers (AppSourceCop, CodeCop, UICop, PerTenantExtensionCop) in your settings.json

3. Check your Problems panel.

Check your Problems panel

4. Run command “ALRunner: Export Diagnostics”.

Run command “ALRunner Export Diagnostics”

5. Open Excel and load the generated “diagnostics.csv” file.

Open Excel and load the generated “diagnostics.csv” file

6. Now you can easily identify, analyze and categorize the errors/warnings in you AL Project.