Using Code Coverage
In some scenarios, it may be useful to see a high-level overview of which objects are used when running a process and what code is executed in those objects. This recipe will show you how to use the Code Coverage tool for exactly that purpose.
How to do it...
From the NAV client menu, click on Tools | Debugger | Code Coverage. This will open the Code Coverage window.
Click the Start button.
Navigate to the Customer Card in the menu suite by clicking on Sales and Marketing | Order Processing | Customers.
Press F3 to insert a new record followed by Tab or Enter to save that record to the database.
Close the Customer Card.
Click the Stop button on the Code Coverage window.
You should now see a form similar to the one shown in the following screenshot:
How it works...
The Code Coverage tool logs every line of code that is executed during a process. In this window, you can see every object that was used during the insertion process as well as the percentage of code (coverage ratio...