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

How to debug new syntax based code where FOR operator VALUE etc has been used?

Pankaj-Kumar
Participant
0 Kudos
2,591

Hello Expert,

Is there any way to check the values of below code snipped for wa-matnr = '004'.

Your comment or answer will be highly appreciated.

Thanks a lot in advance!

Br,

Pankaj kumar

1 ACCEPTED SOLUTION
Read only

venkateswaran_k
Active Contributor
2,040

Hi

In debugger you have the watch point tab as below.

Create a watch point and put the condition there, it will stop at once the condition become true

6 REPLIES 6
Read only

venkateswaran_k
Active Contributor
2,041

Hi

In debugger you have the watch point tab as below.

Create a watch point and put the condition there, it will stop at once the condition become true

Read only

2,040

Dear Venkat,

Thank you so much for your promt reply.

I also found one option for step wise debugging.

If we enable the stepwise debugging option, then it will debug step by step.

Below is the illustration -

Read only

2,040

To clarify, it works whatever the step size is set to sub-statements before of after the watchpoint is reached, what is important is to set it before executing the code step by step.

Either after watchpoint is reached:

  • Add watchpoint
  • Run -> it may stop inside the constructor expression
  • Set "Step size" to sub-statements
  • Execute step by step

Or before:

  • Set "Step size" to sub-statements
  • Add watchpoint
  • Run -> it may stop inside the constructor expression
  • Execute step by step
Read only

0 Kudos
2,040

If Field symbol is been used in for loop. how to create a watch point . How can you create watchpoint in the for loop

Read only

Sandra_Rossi
Active Contributor
0 Kudos
2,040

Please post the code as text instead of image, so that one can easily answer by testing your code.

Read only

Sandra_Rossi
Active Contributor
0 Kudos
2,040

Activate "step size" mode so that to stop at each iteration.

But debug should not be needed as code should be kept rather simple in constructor expressions.