Snapshot debugging
As of the time of writing, none of the aforementioned debugging actions can be performed against an online production environment for security reasons. The only way to debug a production environment in the cloud is asynchronously by collecting a snapshot of the server-side code execution and analyzing it offline in Visual Studio Code. It is possible to collect any number of snapshots and apply specific breakpoints to them, called snappoints, that are not meant to stop the execution of the code at runtime but instruct the server to log and collect the call stack and state of the variables at the snappoint (or when the application goes into error).
To be able to create and/or collect snapshot debugger files, the user must be part of the D365 SNAPSHOT DEBUG standard permission set. This will provide the needed permission to the relevant objects involved in the snapshot debugging process, such as the Published Application
system table.
We also need to declare...