‎2007 Nov 14 3:44 AM
Hi,
Can we change the contents of a field during runtime in the debugging process.
Regards,
Tushar
‎2007 Nov 14 4:17 AM
Hi Tushar
yes you can change the contents of a field while you are debugging...
while going through a particular code, if u want to edit some field in particular line of code,
when you reach the line of code in debugging which contains field that you want to edit, jus double click on the field, in the right side the field content appears where u get an edit option, there u can edit it....
Regards
Naveen
‎2007 Nov 14 3:48 AM
Hi,
I think it is not possible bcoz in debugging mode we can check what happend inside the prog. and what is the value comming for a particular selection.
regds,
paras
‎2007 Nov 14 3:49 AM
Hi Tushar,
Yes you can do that.
When you see the contents of the field, there is a change ICON. Change the contents and press change icon.
Regards,
Atish
‎2007 Nov 14 4:17 AM
Hi Tushar
yes you can change the contents of a field while you are debugging...
while going through a particular code, if u want to edit some field in particular line of code,
when you reach the line of code in debugging which contains field that you want to edit, jus double click on the field, in the right side the field content appears where u get an edit option, there u can edit it....
Regards
Naveen
‎2007 Nov 14 4:20 AM
Hi,,
Yes it is possible .
While debugging , in the bottom part you can type the name of the field to check its content .
In front of this you can see two icons . Second one can be used to change the field content .
For this ..clear ur field content then type the data u want in it and Press this Change Icon Button .
Field value will be reset .
Hope this helps .
Praveen
‎2007 Nov 14 4:33 AM
‎2007 Nov 14 4:38 AM
Hi
<b>Changing Field Values at Runtime</b>
You can change the values of fields at runtime to see how the change would affect the program flow. Suppose you have found out that a field contains an incorrect value. You would be able to replace it with another value in the Debugger to test whether the program would run properly in that case.
You can change the values of the following data objects of your program. If you enter a value with an incompatible type, the system displays an error message.
Single fields
Structured fields
Strings
Fields of internal tables
Fields of classes and interfaces
<b>Procedure</b>To replace the contents of a single field, proceed as follows:
1. Choose Fields to open the field display mode.
2. Double-click or enter the name of a field in the source code to place it in the field display. The field name and its current value appear in the display.
3. Enter a new value for the field.
4. Choose the pencil icon (Change field contents) at the end of the field display.
With certain data objects such as structures or internal tables, you first have to double-click the appropriate field name to display the attributes. You then have to double-click the individual fields again to open the display mode.
Result
The Debugger writes the new value to the program field and the system records the change in the system log. If you do not click the pencil icon, the changed value is ignored.
The Debugger accepts the values exactly as you entered them. You must, therefore, ensure that you use the correct format (upper and lowercase, left-justified entry for hexadecimal numbers).
<b>Reward if usefull</b>