devxlogo

Use Code Profiler for Debugging

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.

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist