‎2008 May 12 12:01 PM
hii,
How to set watchpoint in the debugging mode.actually i have set watchpoint on one of the field but my program is not stopping if the value of the fields ( in which i have set watchpoint) changes?
‎2008 May 12 12:04 PM
hi Priya,
Did your watch point got created or not???... Which you can view by pressing the watch point button on the application tool bar while debugging .... I feel it might not have got created or ay be you are passing an incorrect value ...
Regards,
Santosh
‎2008 May 12 12:06 PM
hi,
the purpose of watchpoint is to stop the program at particular position.
for ex u hav 1000 records in ur table.if u want to check some
X record thn u can create a watchpoint in debuggung mode.
in debugging mode click watchpoint,thn u get option for watchpoint create ,give ur intrenal table fldname ,its value and enter. it will be created.
ex: itab-matnr
=
100023765.
reward if hlpful.
‎2008 May 12 12:06 PM
Hi,
I think mostly that field that u have set watchpoint may not be chaging thats y the program is not stoppin at pt.
Thanks,
Aditya
‎2008 May 12 12:09 PM
hi priya ,
I think may be some problem with your logic so the debugger is not reaching that point . Check your logic once and then try.
Reward ponit if useful
regard ,
sandeep patel
‎2008 May 12 12:17 PM
priya,
mostly ur watch point should not have been created or may you had given some other fields by mistake..
go to debugging mode you can see a button for viewing all the watch points set for the prg..
reward if helpful..
‎2008 Jul 08 12:10 PM
Hi,
I will give you the explanation.
If our code is like the following...
LOOP AT it_tab INTO wa_tab.
IF wa_tab-matnr is not initial.
...
...
ENDIF.
ENDLOOP.
First click the Create Watchpoint button in the debugger session or Shift+F4 (New Abap Debugger).
It will show the create watchpoint screen.
In the variable field, type the variable name that you want the watchpoint.
For example in our case : wa_tab-matnr
Then click the No Additional Condition
In there type your condition.
For Eg : wa_tab-matnr = '100120130'
Now test your program.Your program will stop at that condition.
Thanks and regards
Senthil Kumar Anantham
‎2008 Jul 08 1:19 PM
Hi,
1) Watchpoints are the BREAKPOINTS which trigger when the FIELD VALUE changes in the debugger.
2)Example program:
DATA: itab TYPE TABLE OF sflight,
wa LIKE LINE OF itab.
SELECT * FROM sflight INTO TABLE itab.
LOOP AT itab INTO wa.
WRITE:/ wa-carrid, wa-connid, wa-fldate.
ENDLOOP.
3)Suppose that there are 10 carrier id eg 'AA', 'AZ' 'DL', 'JL', 'KA',' LH', 'IA' , 'QF' , 'SQ', 'UA'
3)I want to check the value of LH in debugger which is 6th carrier id.
4) Set a watchpoint in debugger:--
Program name : Zdemo.
Field name : wa-carrid
Relational operator : =
Comp.fiel/Value : LH
Press Enter.
NOTICE on STATUS BAR that One watchpoint is Created.
5)Now press F8.
6)Observer the variables in "FIELD NAME". Directly system will take you to the LH Field value with the pressing of one F8
so, watchpoints works when the FIELD VALUE changes.
With Regards,
Rupinder