Visualize code lines executed in snapshot capture
This content is archived and is not being updated. For the latest documentation, go to What's new and planned for Dynamics 365 Business Central. For the latest release plans, go to Dynamics 365 and Microsoft Power Platform release plans.
|Admins, makers, marketers, or analysts, automatically
|Sep 1, 2022
|Oct 1, 2022
Snapshot debugging is a powerful way of troubleshooting Business Central cloud production environments. Because snapshot captures are non-interactive, snappoints must be set beforehand, typically making snapshot debugging an iterative process. To increase efficiency in determining which code was actually executed—for example, conditional code paths—and help locate good candidates for setting new snappoints to investigate variable state for code execution, visual cues have now been added to the snapshot playback. These cues are displayed as vertical lines in the left gutter of the code editor.
During snapshot playback in Visual Studio Code, the left-side code editor gutter contains a vertical visual bar to indicate which code was executed in the snapshot capture.
The color of the gutter bar can be controlled using the new al.snapshotDebuggerLinesHitDecoration in the settings.json file.
Tell us what you think
Help us improve Dynamics 365 Business Central by discussing ideas, providing suggestions, and giving feedback. Use the forum at https://aka.ms/bcideas.
Snapshot Debugging (docs)