140 pts.
 Debugging a RPG program
Is there any way to store a variable value in file while the program is in debug? what i means is, I have a data structure of size 32766, while debugging the program ,the dippaly variable only display limited size of the data structure, but I want the total data of the variable......

Software/Hardware used:
ASKED: January 7, 2013  11:41 AM
UPDATED: January 7, 2013  12:53 PM
  Help
 Approved Answer - Chosen by sivakesava (Question Asker)

The problem is simply that the debug EVAL command defaults to a maximum variable display length of 1024 bytes. The solution is simply not to use the default; specify the desired length on the EVAL command. And if the way to do that isn't known, you find out by using [help] for EVAL or by looking at documentation. Learning to use [help] is the solution for so many problems that it needs to be told over and over. -- Tom

ANSWERED:  Jan 8, 2013  0:01 AM (GMT)  by sivakesava

 
Other Answers:
Last Wiki Answer Submitted:  January 7, 2013  12:53 pm  by  Michael Tidmarsh   11,380 pts.
Latest Answer Wiki Contributors:  Michael Tidmarsh   11,380 pts.
To see other answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

the dippaly variable only display limited size of the data structure, but i want the total data of the variable…
 
If you want the total area, then ask for the total area. Who told you that you couldn’t display all of your variable?
 
Tom

 107,735 pts.

 

Store a variable in a file? Do you mean change a variable in a program?

 32,785 pts.

 

If you cannot get it to display all the positions in the debug session there is one other way. Place “DUMP” in the opcode in your code just where you want to see it’s contents. Then check the spool file for the total data structure value.

 3,890 pts.