Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to debug my REXX code? ( New bee is asking basic question)

Status
Not open for further replies.

sriharikilari123

Programmer
Apr 11, 2011
1
US
HI,

I am new to REXX code. I have a REXX code that need to be converted in some other languages. For that fist i need to understand the code. The big problem what I am facing is I do not know how to DEBUG the REXX code.

Please help me
1. How to debug my rEXX code.
2. If we need any tools to debug the code, Please tell me the procedure how to configure.

Thanks in Adance,

Srihari.
 
As written above, in REXX you have the command TRACE and the function TRACE()
However, I'm rather using simply write some SAYs on places where I want see program behavior - something like this:
Code:
/* 
dbg_info = 1 'View debug infos'
         = 0 'Debug infos off' 
*/
dbg_info = 1
...
...
if dbg_info then do
  say '---- dbg info ---'
  say 'a =' a 
  say 'b =' b
  say '-----------------'
end
...
...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top