Infor Lawson Debug Server (ladebug)

The Infor Lawson Debug Server (ladebug) controls the debugging of Infor Lawson COBOL programs in conjunction with the Micro Focus Net Express debugger. With ladebug and Micro Focus Net Express debugger, you can debug programs in conjunction with a browser-based interface, such as the Lawson Portal.

If you start the Micro Focus Net Express debugger, any application programs in debug mode register with the Infor Lawson Debug Server. Then, if the ENABLEDBG parameter in ladebug.cfg is set to TRUE and if ladebug is running, Infor Lawson client programs will check with the Infor Lawson Debug Server to see if the application program is being debugged.

You can also control the stopping and starting of ladebug through the Infor Lawson Environment Service (laserv).

The log file for the Infor Lawson Debug Server is ladebug.log. It is located at %LAWDIR%\system\ladebug.log.

Because of performance considerations, do not run ladebug in a production environment.

See the documentation for the Micro Focus Net Express debugger in the Doc for Developers: Application Development Workbench for more information on debugging procedures.

ladebug.cfg Parameter Reference

Location: %LAWDIR%\system\ladebug.cfg

Parameter Description
DEBUG When DEBUG is set to TRUE, debug messages will be printed to the ladebug.log file. Do not set this to TRUE unless told to do so by Infor Lawson support.
ENABLEDBG Set to TRUE to enable debugging for a Infor Lawson Environment. If the ENABLEDBG parameter in ladebug.cfg is set to TRUE and if ladebug is running, Infor Lawson client programs will check with the Infor Lawson Debug Server to see if the application program is being debugged. Because this setting incurs some overhead, the ENABLEDBG parameter should always be set to FALSE in a production Infor Lawson Environment.
IPADDRESS To ease the setup of debugging, set this to ANY in order to specify Static IP address assignment for the debug server.
PORT The port number that ladebug will use to communicate with the debugger. This port number must be unique for each Environment. If you have FINDPORT set to TRUE, this parameter displays the port ladebug is using. If you do not have FINDPORT set to TRUE, this parameter displays the port number as set by the system administrator.
FINDPORT Set this to TRUE (the default setting) to allow ladebug to find a free port number to use to communicate with the debugger. Do not set this to TRUE if you want your system administrator to assign a port number (via the PORT parameter).
RMTDBG_MAINTPORT

The port that the Remote Debugging Connection Service (RDCS) listens on for control messages. The maintenance port (RMTDBG_MAINTPORT) can be dynamically assigned, since Infor Lawson programs using this port can get the port assignment out of ladebug.cfg.

Note:  This port number must be unique for each installed Environment.
RMTDBG_FINDMAINTPORT When set to TRUE, tells the Remote Debugging Connection Service (RDCS) to find a free port number.
RMTDBG_DBGPORT Not supported.
RMTDBG_FINDDBGPORT Not supported.
RMTDBG_IPADDRESS To ease the setup up of remote debugging, set this to ANY to specify Static IP address assignment for the remote debug server.
RMTDBG_ENABLEDBG

Flag used to enable remote debugging for an Environment when set to TRUE.

The RDCS server (laanimserv) is started when ladebug is started if RMTDBG_ENABLEDBG is set to TRUE. Likewise, it is stopped when ladebug is stopped. From an administrative point of view, this means that there are no new start/stop commands or any additional setup in laserv for RDCS.