You can debug a CGI applications using the Just-In-Time Debugger with an embedded call to CBL_DEBUGBREAK, or using the
COBOL Wait for Application Attachment debug configuration.
Tip: If the Debugger fails to find the symbols for your program, you can add the path to the CGI symbols to your symbol path.
Do this by adding it to the
Debug Symbols Lookup Path list in your debug configuration.
- Start your Web server.
- Currently, IIS is not supported
- On Apache, you must run the Apache process as your own user (not as a service)
- If you run Apache as a service, you need to use a call to CBL_DEBUGBREAK
- Configure Apache so that the
cgi-bin directory points to the Eclipse build output directory.
- Ensure the CGI binaries are in a folder on the Web server and execution of CGIs in that folder is enabled.
- In Eclipse, select a COBOL Wait for Application Attachment debug configuration, using the CGI executable as the target
- Start debugging.
- Start a Web browser and enter a URL that will invoke the CGI executable.