Debugging with RDi



The following document will explain how to debug RPGLE code in the IBM Rational Developer for i with Service Entry Points, this can be helpful for anyone who needs to debug their program. The article will cover how to create and successfully use a debug configuration as well as how to implement a Service Entry Point into your code. 

  1. Open RDi and select the program in the Library list you want to debug, it can also be found via a filter or by browsing libraries that aren't in the library list. The program will be formated *pgm.rpgle

       2. Right-click on the program and select Debug or Code Coverage (Service Entry)

       3. Then select Set Service Entry Point

       4. Confirm that the Service Entry Point has been set, the SEP view will typically just appear underneath your editor

  1.  

    1. Check that the debug mode is selected by mousing over the bug icon in the upper right of the SEP view tray. 

      5. Launch the program and scroll through the line you want then right-click to add a breakpoint

  1.  

    1. The blue square to the right of the line will indicate if a breakpoint has been set or not. 

    2. You can also remove, enable, disable and edit the breakpoint by right-clicking on the line where it's been added. 

       6. Yellow buttons on the top right allow you to ‘step over’ with the debugger