Snapshot debugging is the best way to debug the Business Central cloud production environment. It records AL codes that run on the server and after finishing the debugging all recorded snapshots are downloaded to your local project. You can debug any previously downloaded snapshots offline (Without connecting to the BC cloud server).
But first, what is a snapshot? A snapshot is a recording of executed code in Business Central.
We’ve never had a debugger quite this powerful and versatile. Debugging NAV 2013 is Easy!
By nature I am a pessimist. In any situation I tend to look for problems and point them out to everyone. Since my goal of pointing out the problems is always to SOLVE them, and leave the situation in a better state than I found it, I personally consider my natural pessimism a very positive attribute.
For this example we will be using Microsoft Dynamics NAV 2009 R2 and Microsoft Visual Studio 2010 Professional.
Create a page
To use as an example for debugging, let’s create an empty page (for example 50000 RTCDebugTest) with a new action called “Messages”. In code of this action, we create two local variables: