2015 Apr 15 7:22 AM
Let assume that we want to do something extra in case of debugging.
I found out that I can use cl_abap_debugger:
DATA: it_breakpoints_complete TYPE breakpoints_complete .
cl_abap_debugger=>read_breakpoints( IMPORTING breakpoints_complete = it_breakpoints_complete ) .
IF it_breakpoints_complete IS NOT INITIAL .
* do something extra.....
ENDIF .
I just add a break point to the program and it is working .
Is there a better way of doing this ?
Thank for any feed back .
2015 Apr 15 7:55 AM
2015 Apr 15 8:02 AM
2015 Apr 15 8:09 AM
Hi,
What needs to be done so the system will put something in SY-DEBUG ?
Regards.
2015 Apr 15 8:49 AM
DEBUG is internal use, can`t be read in ABAP program. I like your solution.
Regards,
Archer
2015 Apr 15 9:19 AM
Thanks.
I found about it only this morning and I like to know if someone has tried it in production system .
I want to reduce the chance of potential problems if I can.
Regards.
2015 Apr 15 9:46 AM
Hi,
will it find hard-coded or 'soft' session break points?
Regards,
Clemens
2015 Apr 15 11:07 AM
Hi,
This is my only test :
Regards.
Code:
*&---------------------------------------------------------------------*
REPORT z_r_eitan_test_30_01.
INITIALIZATION.
PERFORM at_initialization .
*----------------------------------------------------------------------*
FORM at_initialization .
DATA: it_breakpoints_complete TYPE breakpoints_complete .
cl_abap_debugger=>read_breakpoints( IMPORTING breakpoints_complete = it_breakpoints_complete ) .
IF it_breakpoints_complete IS NOT INITIAL .
ENDIF .
ENDFORM .
*----------------------------------------------------------------------*
2015 Apr 15 11:11 AM
both will return value from that method. i just test it.
regards,
Archer