Enabling Just-in-Time Debugging

You can enable Eclipse to be your Just-in-Time (JIT) debug client by configuring the Eclipse preferences. By enabling JIT, Eclipse is invoked when your COBOL program requires a debugger.

There are further preferences that you can configure to control the behavior of Eclipse as it prepares to debug; you can:
  • (Windows-only) Configure the run-time system to prompt that Eclipse is about to launch as the debugger. This prompt gives you the option to cancel JIT debugging. This requires you to add a DWORD (32-bit) Value entry under Computer\HKEY_CURRENT_USER\Software\Micro Focus\Visual COBOL\<version-num>\COBOL\Config
    • disable_cbl_debugbreak with a value of 0 prompts that Eclipse is about to be launched as the JIT debugger, where you can cancel this, if required.
    • disable_cbl_debugbreak with a value of 1 disables debugging completely.

    If this registry entry is not present, JIT debugging is launched immediately.

  • Launch the JIT launch configuration preferences prior to debug, enabling you to tweak the debug session.