Debug OS/2 REXX and WorkPlace Shell DLLs

Note: This section applies only to programs running on OS/2.

You can use the debugger to debug OS/2 REXX DLLs and WorkPlace shell DLLs.

To debug a REXX DLL, type the following from an OS/2 command shell:

idebug cmd.exe /K myrexx.cmd

where myrexx.cmd is the name of your REXX command file. When the debugger stops at the beginning of CMD.EXE, do the following:

  1. From the Breakpoints menu, set a Load occurrence breakpoint to stop when your DLL is loaded.
  2. Run the program. When the load occurrence breakpoint is encountered, a Source window for your DLL displays.
  3. Set breakpoints, run, step, and use other debugger features to debug your DLL.

To debug a WorkPlace Shell DLL, replace the RUNWORKPLACE line in your config.sys with the following line:

SET RUNWORKPLACE=X:/OS2/CMD.EXE

where X:/OS2/CMD.EXE is the drive letter and path name for the OS/2 CMD.EXE command interpreter. This prevents the Presentation Manager shell from loading automatically on system restart. After rebooting, type the following from an OS/2 command shell:

idebug x:/os2/cmd.exe

When the debugger stops at the beginning of PMSHELL.EXE, follow the same steps as for debugging an OS/2 REXX DLL.



Debug a DLL