---
title: "How to Debug COBOL Program in Xpediter"
description: "The best and really good tips that a programmer need handy of these tips while working on XPEDITER of debugging tool in Mainframe projects, Best for COBOL projects. Read more."
url: https://srinimf.com/2013/04/19/cobol-debugger-and-programmer-role/
date: 2013-04-19
modified: 2026-10-10
author: "Srini"
image: https://i0.wp.com/srinimf.com/wp-content/uploads/2013/04/pexels-photo-4022545.jpeg?fit=1880%2C1256&ssl=1
categories: ["Xpediter"]
tags: ["COBOL Tips and Tricks", "Xpediter commands"]
type: post
lang: en
---

# How to Debug COBOL Program in Xpediter

In the Mainframe environment working as a Programmer is a challenging task. And working on a debugger is again a double challenging task.

Related[19 IBM Debugger Commands Helpful to Debug Your Program](https://srinimf.com/2021/07/30/ibm-debugger-here-are-the-most-useful-commands/)

## [How to Debug](https://srinimf.com/2012/06/14/cics-online-xpediter/) COBOL Program

1. View your source code as it executes.
2. Monitor variable values.
3. Change the value of variables on the fly.
4. Determine what the variable values were at the instant an abend occurred.
5. Set breakpoints to halt execution at any statement in the program.
6. Set conditional breakpoints to halt execution when a variable is set to a certain value (such as REC-COUNT = 100) or when the value contained in a given address in memory changes. This latter feature is especially useful to help you find problems that have the effect of inadvertently overwriting parts of memory.
7. Work with programs running in or under the batch mode, including ISPF/TSO, IMS/DC, and CICS applications.

Related[Xpediter Mainframe Debugger Tutorial (Part 1)](https://srinimf.com/2012/01/05/xpediter-commands/)

### Additional Debugging Points

The sooner you learn the capabilities of your debugger, the faster your debugging cycle.  When trying to debug complex and unfamiliar code, use the debugger together with a utility that can generate a hard-copy hierarchy chart of your program.

Set breakpoints at the beginning of each PERFORM block in the program and trace the logic flow for various options or test cases on the chart using different colored highlighters.

In the mainframe environment, a popular debugging tool is a Compuware product known as Xpediter.

Xpediter allows you to set breakpoints and step through the program using COBOL code instead of trying to decipher machine code. You can examine the value of all variables at the breakpoints. Compuware also supplies Abend-AID, considered an industry staple.

**Related articles**

- [Missing COBOL](http://www.codeproject.com/Lounge.aspx?msg=4520354) (codeproject.com)
- [Cobol-Data Challenges(1 of 2)](http://srinimf.com/2013/03/21/cobol-data-challenges1-of-2/) (srinimf.com)
- [DB2-Calling Cobol,C,Java Programs from Stored Proc](http://srinimf.com/2013/03/22/db2-calling-cobolcjava-programs-from-stored-proc/) (srinimf.com)![](https://i0.wp.com/img.zemanta.com/pixy.gif)

### Share this:

-
- [Tweet](https://twitter.com/share)
- [![](https://i0.wp.com/assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png)](https://www.pinterest.com/pin/create/link/?url=https%3A%2F%2Fsrinimf.com%2F2013%2F04%2F19%2Fcobol-debugger-and-programmer-role%2F&media=https%3A%2F%2Fi0.wp.com%2Fsrinimf.com%2Fwp-content%2Fuploads%2F2013%2F04%2Fpexels-photo-4022545.jpeg%3Ffit%3D1200%252C802%26ssl%3D1&description=How%20to%20Debug%20COBOL%20Program%20in%20Xpediter)
-
- [Share on Tumblr](https://www.tumblr.com/share)
- [Share on WhatsApp (Opens in new window) WhatsApp](https://srinimf.com/2013/04/19/cobol-debugger-and-programmer-role/?share=jetpack-whatsapp)
- [More](#)
-

- [Print (Opens in new window) Print](https://srinimf.com/2013/04/19/cobol-debugger-and-programmer-role/?share=print)
- [Share on Reddit (Opens in new window) Reddit](https://srinimf.com/2013/04/19/cobol-debugger-and-programmer-role/?share=reddit)
- [Share on Telegram (Opens in new window) Telegram](https://srinimf.com/2013/04/19/cobol-debugger-and-programmer-role/?share=telegram)
- [Email a link to a friend (Opens in new window) Email](mailto:?subject=%5BShared%20Post%5D%20How%20to%20Debug%20COBOL%20Program%20in%20Xpediter&body=https%3A%2F%2Fsrinimf.com%2F2013%2F04%2F19%2Fcobol-debugger-and-programmer-role%2F&share=email)
-

### Like this:

Like Loading…
