Use Code Profiler for Debugging

Sometimes a runtime error only manifests itself after an EXE ismade and not in debug mode. This can be hard to track down, evenwith message-box statements. Use the code profiler add-in to findthe offending line of code. Following these steps should leadto your error:

  1. First back up your code.
  2. Select the code profiler add-in.
  3. Select the source code file (or all source code files).
  4. Select the Line Hit Count option.
  5. Select the Add Profiler Code button.
  6. Compile the code into an EXE.
  7. Run the code to the error.
  8. Go back to the code profiler and select View Results fromthe File menu.

Look for the last line that was executed in the offending module.You may have to trace through your code in debug mode at the sametime that you look for the last line executed in the profiler.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: