Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

debugging

Former Member
0 Likes
778

Hi,

Can we change the contents of a field during runtime in the debugging process.

Regards,

Tushar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
741

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

6 REPLIES 6
Read only

Former Member
0 Likes
741

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

Read only

Former Member
0 Likes
741

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

Read only

Former Member
0 Likes
742

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

Read only

Former Member
0 Likes
741

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

Read only

Former Member
0 Likes
741

thanks all

Read only

Former Member
0 Likes
741

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>