To attach to a native COBOL process running remotely

Note:
  • The following applies to native code only.
  • If debugging a program or a process on a remote UNIX machine, ensure that the remote machine has an X Window implementation installed and running before you start debugging. This ensures that the output of the remote program can be viewed on your local machine.

To attach the Micro Focus Native Debugger to a 32-bit or 64-bit process running on a remote machine:

  1. In Visual Studio on your local machine, click Debug > Attach to Process.
  2. In the Transport field, specify Micro Focus transport.
  3. In the Qualifier field, specify the following:
    machine:port[:32|64]

    Where:

    machine
    The name, or the IPv4 or IPv6 address of the remote machine. IPv6 addresses must be enclosed by square brackets - for exampke, [address].
    port
    The port number on the remote machine that the cobdebugremote or cobdebugremote64 process is using.
    32|64
    Optional. Indicates whether to attach to a 32-bit or 64-bit remote process. If this parameter is not specified, the default is 64-bit.
  4. Click Refresh for Visual Studio to find the processes running on the remote machine.
  5. Select the process to debug from the list.
  6. Click Attach.

    The debugger attaches to the process, but will not break execution until the process hits a breakpoint, an error occurs, or you press the break button.