The code coverage functionality is useful when you are customizing Microsoft Dynamics NAV and want to test your work. It provides a quick overview of the objects for which code has been executed, and it displays the code that has been logged.

To use the Code Coverage Tool

  1. In the Classic client, click Tools, click Debugger, and then click Code Coverage to open the Code Coverage window.

  2. Click Start. The Code Coverage tool is now ready to log code.

  3. Return to the Code Coverage window when you have completed the transactions that you want to monitor. This window now contains a list of any tables, forms, reports, dataports, and codeunits that were used.

  4. Click Stop.

  5. Select an object that you want to view the code for. Click Code to open the Code Overview window.

See Also