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

Problem with watchpoints in new abap debugger

dhorions
Contributor
0 Likes
354

Hello,

when using the new debugger to watch a value-parameter in a form, the debugger stops every time the value of the variable in the watchpoint is changed.

Even when there is an extra condition entered.

Is this a bug, or is it supposed to happen that way because the parameter is passed as a value rather than a reference?

This is a bit hard to explain, so here is a simple code sample demonstrating the behaviour :

  
REPORT ztestndeb.
data : test type string.
do 5 times.
  concatenate test 'A' into test.
  write : / test.
  perform valueparamform using test.
enddo.
*&---------------------------------------------------------------------*
*&      Form  valueparamform
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      -->P_TEST  text
*----------------------------------------------------------------------*
form valueparamform  using    value(p_test).
* watchpoint for field p_TEST with condition p_TEST eq 'AAA' stops every time value of p_test changes                    
  write : 'Valueparameter : ', p_test.
endform.                    " valueparamform

Our sap version is :

sap version : SAP ECC 6.0

SAP_ABA 700 0011 SAPKA70011

SAP_BASIS 700 0011 SAPKB70011

1 REPLY 1
Read only

Former Member
0 Likes
280

I am having the same problems with the additional conditions - does anyone know how to get this to work?