Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

RE: cobanimsrv

$
0
0

Hi Alain,

Yes, with Visual COBOL for Eclipse working remotely with your Linux server, you can reproduce the cross session debugging you had with cobanimsrv. These steps assume you have a Remote COBOL Project already created in Visual COBOL for Eclipse, and that you've used that project to build your executable:

  1. Within Eclipse, create a new Debug Configuration:
    1. Ensure your Remote COBOL project is open and highlighted in the COBOL Explorer view
    2. Right click on the project, and choose Debug As-> Debug Configurations (this will open a new window)
    3. In the list on the left, select "COBOL Wait for Application Attachment" as the type of Debug Configuration you'd like to create
    4. Click the "New Launch configuration" button above the list (looks like a sheet of paper with a plus on it) to create the Debug Configuration
    5. On the right, ensure the project name is filled in correctly
    6. Under the Matching Options, select the Radio Button labeled "Executables stored in directory", and enter or browse to the directory on the remote machine where your executable file resides
    7. If your application is 64 bit, be sure to check the box for that
  2. Click Debug to start the debugger waiting for new programs to launch in the directory you specified above
  3. At the command prompt on the LInux DevHub machine, make sure your environment in that session is set up for running COBOL. The easiest way to do this is to source a script we provide. If you've installed DevHub in the default directory, you can run the script with: "source /opt/microfocus/VisualCOBOL/bin/cobsetenv"
  4. Finally, cd to the directory containing your executable, and run it. You should see the debugger "catch" over in Eclipse, and be able to start debugging the program.

If you run into any issues, please reply here, and I'm sure we can get you going.

 


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>