Introduction
No one writes perfect code on their first attempt. When running hundreds or even thousands of lines of code at a time, it can be extremely difficult to determine where exactly an error occurred and what caused it. That's why we have tools such as the debugger in Microsoft Dynamics NAV.
For the most part of the recipes in this chapter, we will not deal with writing your own code or writing better code. Instead, we will focus more on how you can determine what is happening with the code you have already written.