Skip to main content

Debugging Production Code

Debugging Production Code

The first step in debugging is to enable tracing as described in Monitoring Productions. If this does not reveal the problem, you can step into the code using the debugger, as follows:

  1. Edit the code in an IDE to insert the BREAK command where you want to start debugging.

  2. Enable the Foreground setting for the business host that uses the class you want to debug.

  3. Start the production. The job that you marked in Step 2 runs in the foreground in the Terminal.

  4. When that BREAK command is reached, the Terminal enters debug mode and you can step through the code.

For details, see Command-Line Routine Debugging.

FeedbackOpens in a new tab