Overview - Just-In-Time Debugging and Native COBOL

Just-In-Time debugging allows a debugger to be connected to a running application when an error occurs.
Restriction: The following applies to native code only.

This is how you use the Micro Focus Native Debugger for Just-In-Time debugging when a runtime error occurs:

  1. Just-In-Time debugging must be enabled. See To enable just-in-time debugging for when the application fails .
  2. When a runtime error occurs, the Visual Studio Just-In-Time Debugger dialog is displayed with a list of the possible debuggers to use.
  3. Select a Visual Studio debugger.

    This can either be a new instance of Visual Studio or one that is already running.

  4. Check Manually choose the debugging engines.
  5. Click Yes to start debugging.
  6. In the Attach to Process dialog, ensure only Micro Focus Native Debugger is selected under Choose the types of code to debug.
  7. Click OK.

    The debugger attaches to the application that caused the error.

Note:
  • To debug the application, the debugger must find the symbols file (the .idy file). Depending on what application you debug the path to the symbols file may need to be manually defined.
  • If you have the source files and the .idy files, the source code is displayed at the line where the error occurred. If you do not have the required files, the name of the source file or the program where the error occurred is displayed.
  • For 64-bit applications, your COBOL development system must be running and waiting for a debuggable attachment.