Skip to main content

I have my development machine (Windows Server 2012, Net Express 5.1) and second machine (also Windows Server 2012) with product which I am developing installed. Please is there any possibility to setup remote debug between these two servers?

Thanks for any help.


#debugging
#cobolnetexpress

I have my development machine (Windows Server 2012, Net Express 5.1) and second machine (also Windows Server 2012) with product which I am developing installed. Please is there any possibility to setup remote debug between these two servers?

Thanks for any help.


#debugging
#cobolnetexpress
Remote Debugging Windows based machines.

Providing you have access to the application server that reproduces the error by being on the same network you should be able to animate the error using Net Express.
This can be achieved in some very simple steps.

1. Compile the program you want to animate for animation.
2. Copy the Compiled .int and the .idy to the application machine and place both files in the correct folder.

3. On the application machine, go to a command prompt. Note on a piece of paper the working folder of your application.
4. Establish the IP address (you can type IPCONFIG at the command prompt) of the application machine and write it down
5. At the command prompt type ANIMSERV a DOS window will appear advising you of a port number (Write it down)
6. The application machine is now ready
7. Pick up the bit of paper that you wrote the above down and go to your development machine
8. Load Net Express
9. If you have IIS (Internet Information Server) running, ensure is Net Express you uncheck solo (Options~Project)
10. Enable the option 'Show start animator prompt' from Options~Animate
10. Click on Animate~Settings from the tool bar
11. Check the Execute remotely box and populate the other values (from that slip of paper you wrote on!)
12. Note the Location of debug information files(.idy)….that means where are the idy files on the developer machine
13. Check the wait for animatable attachement box
14. Select OK
15. Click on Animate~Start Animating and select Yes to connect to the application server.
16. The start animating dialog will appear if connection was successful
17. Remove the Executable or Program name so the field is blank and select OK. Net Express should fade into the background now waiting for the customer machine to call it.
18. Now at the application machine start to replicate the error. When you program (compiled for animation) is called Net Express should load your source code ready for you to step through. NOTE: at this point the application machine will “hang” because it’s waiting for the developer to step through the code. When the animatable program is exited control is passed back to the client. (Obviously this depends what you’re animating)…also the code WILL be slow to step through, be patient.

Things to look out for:
Sometime perhaps 2nd time debugging Net Express doesn’t connect, it might have a 114 error dialog that’s not visible. You might have to KILL Net Express, plus the Animserv on the application machine and start again.
You might need to put a CALL “CBL_DEBUGBREAK” in your source code before you compile for animation.

If you doing lots of remote animation where Net Express or ANIMSERV crash, it's easy to start animserv port=nnnn , that way you don't have to keep changing the port in the remote setting everytime you start again.

If you mouse over object reference fields you risk crashing the animation.

Hope I didn't miss anything.

It’s magic when it works………

Neil

I have my development machine (Windows Server 2012, Net Express 5.1) and second machine (also Windows Server 2012) with product which I am developing installed. Please is there any possibility to setup remote debug between these two servers?

Thanks for any help.


#debugging
#cobolnetexpress
Hi Neil,
thanks for great setup. But I have problem in point 5. I don't have Cobol development (Net Express) installed on application machine. Could I only copy ANIMSERV (or any other necessary files) to application machine, or there must be whole Net Express installed also?
Thanks.

I have my development machine (Windows Server 2012, Net Express 5.1) and second machine (also Windows Server 2012) with product which I am developing installed. Please is there any possibility to setup remote debug between these two servers?

Thanks for any help.


#debugging
#cobolnetexpress
On your developer machine you have NetExpress, on your application machine if running windows you must have the end user runtime (Micro Focus Server) installed otherwise your application wouldn't run.

The Animserv should be under the Micro Focus Server runtime folder.

If you have not installed the full runtime and instead taken runtime files and packaged your own, then you need to grab these files too, These files are packaged in the Micro Focus Server install file.

These are for the WINDOWS platform, look in your documentation On-site Debugging Support Files to Ship if doing this on UNIX/Linux.

Animator animlist.dll
animpars.dll
animserv.exe
animsrvr.lbr
cbldbg.dll
cobcli.lbr
run.cfg
run.exe
runm.exe
runmw.exe
runs.exe
runsw.exe
runw.exe
shell.lbr
tools.lbr
visremot.dll

Animating shipped single-threaded executable files cblanms.dll

Animating shipped multi-threaded executable files cblanmm.dll

Debugging core dump of shipped executable files cblcored.exe

Debugging remotely cbldbg.dll

If you are trying to copy them from your NetExpress Bae\\Bin folder you would have to make sure the versions where compatible.

Neil

I have my development machine (Windows Server 2012, Net Express 5.1) and second machine (also Windows Server 2012) with product which I am developing installed. Please is there any possibility to setup remote debug between these two servers?

Thanks for any help.


#debugging
#cobolnetexpress
On your developer machine you have NetExpress, on your application machine if running windows you must have the end user runtime (Micro Focus Server) installed otherwise your application wouldn't run.

The Animserv should be under the Micro Focus Server runtime folder.

If you have not installed the full runtime and instead taken runtime files and packaged your own, then you need to grab these files too, These files are packaged in the Micro Focus Server install file.

These are for the WINDOWS platform, look in your documentation On-site Debugging Support Files to Ship if doing this on UNIX/Linux.

Animator animlist.dll
animpars.dll
animserv.exe
animsrvr.lbr
cbldbg.dll
cobcli.lbr
run.cfg
run.exe
runm.exe
runmw.exe
runs.exe
runsw.exe
runw.exe
shell.lbr
tools.lbr
visremot.dll

Animating shipped single-threaded executable files cblanms.dll

Animating shipped multi-threaded executable files cblanmm.dll

Debugging core dump of shipped executable files cblcored.exe

Debugging remotely cbldbg.dll

If you are trying to copy them from your NetExpress Bae\\Bin folder you would have to make sure the versions where compatible.

Neil

I have my development machine (Windows Server 2012, Net Express 5.1) and second machine (also Windows Server 2012) with product which I am developing installed. Please is there any possibility to setup remote debug between these two servers?

Thanks for any help.


#debugging
#cobolnetexpress
On your developer machine you have NetExpress, on your application machine if running windows you must have the end user runtime (Micro Focus Server) installed otherwise your application wouldn't run.

The Animserv should be under the Micro Focus Server runtime folder.

If you have not installed the full runtime and instead taken runtime files and packaged your own, then you need to grab these files too, These files are packaged in the Micro Focus Server install file.

These are for the WINDOWS platform, look in your documentation On-site Debugging Support Files to Ship if doing this on UNIX/Linux.

Animator animlist.dll
animpars.dll
animserv.exe
animsrvr.lbr
cbldbg.dll
cobcli.lbr
run.cfg
run.exe
runm.exe
runmw.exe
runs.exe
runsw.exe
runw.exe
shell.lbr
tools.lbr
visremot.dll

Animating shipped single-threaded executable files cblanms.dll

Animating shipped multi-threaded executable files cblanmm.dll

Debugging core dump of shipped executable files cblcored.exe

Debugging remotely cbldbg.dll

If you are trying to copy them from your NetExpress Bae\\Bin folder you would have to make sure the versions where compatible.

Neil

I have my development machine (Windows Server 2012, Net Express 5.1) and second machine (also Windows Server 2012) with product which I am developing installed. Please is there any possibility to setup remote debug between these two servers?

Thanks for any help.


#debugging
#cobolnetexpress
Thanks Neil. Now it seems that connection is estabhlished. I still can't debug, but it will be my application related issue. I am developing upon Infor Sun Systems, and there is really complicated Session Manager, so I must somehow solve it.
But thanks for your help about setup remote debugging.

I have my development machine (Windows Server 2012, Net Express 5.1) and second machine (also Windows Server 2012) with product which I am developing installed. Please is there any possibility to setup remote debug between these two servers?

Thanks for any help.


#debugging
#cobolnetexpress
If you have a connection established you're almost there. It's likely the problem is not defining the correct working folder for the Sun System in the Remote setting of Net Express.

If I know I have compiled the program I want to animate for animation and have placed it on the Sun System but it's not breaking into Net Express I try and break into the first program that's called ensuring I set a CBL_DEBUGBREAK.

Often we end up trying to animate a program that's called somewhere down the chain of programs. If you start at the very first COBOL program called you and it breaks into NetExpress you know you have all your settings correct.

If your using Native ( .GNT) code.....you might want to recompile that one program as .INT code and see if that works.

Good Luck

Neil

I have my development machine (Windows Server 2012, Net Express 5.1) and second machine (also Windows Server 2012) with product which I am developing installed. Please is there any possibility to setup remote debug between these two servers?

Thanks for any help.


#debugging
#cobolnetexpress
If you have a connection established you're almost there. It's likely the problem is not defining the correct working folder for the Sun System in the Remote setting of Net Express.

If I know I have compiled the program I want to animate for animation and have placed it on the Sun System but it's not breaking into Net Express I try and break into the first program that's called ensuring I set a CBL_DEBUGBREAK.

Often we end up trying to animate a program that's called somewhere down the chain of programs. If you start at the very first COBOL program called you and it breaks into NetExpress you know you have all your settings correct.

If your using Native ( .GNT) code.....you might want to recompile that one program as .INT code and see if that works.

Good Luck

Neil

I have my development machine (Windows Server 2012, Net Express 5.1) and second machine (also Windows Server 2012) with product which I am developing installed. Please is there any possibility to setup remote debug between these two servers?

Thanks for any help.


#debugging
#cobolnetexpress
Thanks for tips. Just question about defining remote working folder. It should by standard absolute path like C:\\Program Files\\.... or some network path like \\\\ip address\\... ?

I have my development machine (Windows Server 2012, Net Express 5.1) and second machine (also Windows Server 2012) with product which I am developing installed. Please is there any possibility to setup remote debug between these two servers?

Thanks for any help.


#debugging
#cobolnetexpress

I use an absolute path. This working directory is local to the application server (your SUN System). So it's not something that NetExpress on your developer machine will access directly so a UNC path is not required.

I think probably that path defined in the remote section is somehow in NetExpress sent in the connection to ANIMSERV and when ANIMSERV picks up an IDY has been loaded in that process path is calls back to Net Express telling it pointers to the IDY on your local machine (Educated guess)

Neil


I have my development machine (Windows Server 2012, Net Express 5.1) and second machine (also Windows Server 2012) with product which I am developing installed. Please is there any possibility to setup remote debug between these two servers?

Thanks for any help.


#debugging
#cobolnetexpress
Ok, I am still searching what can be wrong. My applicaton (SUN System) hangs out as waiting on something, but on development machine in Net Express I dont have any source opend. Only message that:

Tracing is ON
Exception caught attempting to process logging config file 'C:\\Program Files (x86)\\Infor\\SunSystems\\SunSystemsSession.SU.Config' : Could not find file 'C:\\Program Files (x86)\\Infor\\SunSystems\\SunSystemsSession.SU.Config'. --> Stack : Could not find file 'C:\\Program Files (x86)\\Infor\\SunSystems\\SunSystemsSession.SU.Config'
[SunSpot] Timing is disabled

And on ANIMSERV window I got only this:

Waiting for connection, using port 49100
Communications started on port 49100

Shouldn't be there something more about communication with development machine? But it's connected because when I close ANIMSERV windows I got message on my development machine, that connection to remote machine was lost.

I have my development machine (Windows Server 2012, Net Express 5.1) and second machine (also Windows Server 2012) with product which I am developing installed. Please is there any possibility to setup remote debug between these two servers?

Thanks for any help.


#debugging
#cobolnetexpress
If I had issues like this , I created a NetExpress Project and added the COBOL Programs to the project and made sure COBIDY and COBCPY had been configured (Project~Properties~IDE). Then debug using the project. Lots here would depend on how your environment was setup.

It's sounds if you're almost there. ANIMSERV windows - perfect

The fact that it hangs could be Net Express doesn't know where to find the source code etc....so stick it in a project and try.

I don't have a UNIX/LINUX platform at hand these days to be more helpful.

Perhaps someone else would chip in, that still works in the UNIX/LINUX arena to plug my missing points.

Neil

I have my development machine (Windows Server 2012, Net Express 5.1) and second machine (also Windows Server 2012) with product which I am developing installed. Please is there any possibility to setup remote debug between these two servers?

Thanks for any help.


#debugging
#cobolnetexpress
If I had issues like this , I created a NetExpress Project and added the COBOL Programs to the project and made sure COBIDY and COBCPY had been configured (Project~Properties~IDE). Then debug using the project. Lots here would depend on how your environment was setup.

It's sounds if you're almost there. ANIMSERV windows - perfect

The fact that it hangs could be Net Express doesn't know where to find the source code etc....so stick it in a project and try.

I don't have a UNIX/LINUX platform at hand these days to be more helpful.

Perhaps someone else would chip in, that still works in the UNIX/LINUX arena to plug my missing points.

Neil

I have my development machine (Windows Server 2012, Net Express 5.1) and second machine (also Windows Server 2012) with product which I am developing installed. Please is there any possibility to setup remote debug between these two servers?

Thanks for any help.


#debugging
#cobolnetexpress
If I had issues like this , I created a NetExpress Project and added the COBOL Programs to the project and made sure COBIDY and COBCPY had been configured (Project~Properties~IDE). Then debug using the project. Lots here would depend on how your environment was setup.

It's sounds if you're almost there. ANIMSERV windows - perfect

The fact that it hangs could be Net Express doesn't know where to find the source code etc....so stick it in a project and try.

I don't have a UNIX/LINUX platform at hand these days to be more helpful.

Perhaps someone else would chip in, that still works in the UNIX/LINUX arena to plug my missing points.

Neil

I have my development machine (Windows Server 2012, Net Express 5.1) and second machine (also Windows Server 2012) with product which I am developing installed. Please is there any possibility to setup remote debug between these two servers?

Thanks for any help.


#debugging
#cobolnetexpress
Maybe my problem is something between GNT/INT compile. I compile to GNT. And opening Net Express thru whole project. When I try to open only source which I want debug, and compile it to INT, I even unable to connect to application machine via ANIMSERV.

I have my development machine (Windows Server 2012, Net Express 5.1) and second machine (also Windows Server 2012) with product which I am developing installed. Please is there any possibility to setup remote debug between these two servers?

Thanks for any help.


#debugging
#cobolnetexpress
So actual progress is this: When I try whole process on same machine - so I start ANIMSERV on development machine, and in Net Express in Animation - Setting I set IP address to 127.0.0.1, it's working fine, source code for debugging is opened in Net Express. But when ANIMSERV is started on some other server, connection between development and application machine is ok, but source code for debug isn't opened in Net Express. I am debugging Infor Sun Systems application, so maybe this is problem and some special setting is needed?

I have my development machine (Windows Server 2012, Net Express 5.1) and second machine (also Windows Server 2012) with product which I am developing installed. Please is there any possibility to setup remote debug between these two servers?

Thanks for any help.


#debugging
#cobolnetexpress
Now I found the problem. When I try remote debug where development and also application machine have both Net Express installed, it is working. But when I don't have Net Express installed on application machine, it isn't work. Connection between development and application machine is established, but program doesn't stop for debug. Please can you advice me, how to setup application machine?

I have my development machine (Windows Server 2012, Net Express 5.1) and second machine (also Windows Server 2012) with product which I am developing installed. Please is there any possibility to setup remote debug between these two servers?

Thanks for any help.


#debugging
#cobolnetexpress
I am closer to slove this problem. What I am missing on my application machine is EnterpriseLink Loader Service. In Net Express it's located in ..Micro Focus\\Net Express 5.1\\WCS\\ Please what should I copy or install to application machine to get remote debugging working?
Thanks.