O'Reilly logo

Microsoft Dynamics NAV 7 Programming Cookbook by Rakesh Raul

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting breakpoints

Stepping through the code line-by-line or function-by-function can take forever. Luckily, there is an easy way to tell the debugger to stop right where we want it to.

How to do it...

  1. Create and save the same codeunit discussed in the Using the debugger recipe in this chapter.
  2. Design the codeunit.
  3. Go to the following line of code in the OnRun trigger:
    ChangeCustomerName(Text001);
  4. Press F9 twice.
  5. Then go to the following line of code in the OnRun trigger:
    VALIDATE("Post Code");
  6. Press F9 once.
  7. Your window should look like the following screenshot:
    How to do it...
  8. Save and close the codeunit.
  9. From the Tools menu of the Microsoft Dynamics NAV Development Environment ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required