How to use ‘Goto statement’ to do backward debugging in ABAP 详解编程语言

Scenario:

At the time debugging code for investigation, issue fixing or other purpose, there can be a situation that test data is hard to reproduce (1st case) or we want debug a particular routine / FM within a loop for which there is only one record in internal table. And accidentally developer has pressed F6 than F5 and you missed that chance! 

Challenge:

The pain is that now either we have to run behind functional to get another test data (1st case) or have patience to go step by step again to reach that particular loop (2nd case).

Solution:

The ‘Goto Statement’ option in debugging can save us this effort. It is possible to go back to the previous statement after you position the cursor and click ‘Goto statement’ menu entry; program control will move to the statement and debugging will start from that point.

How to use 'Goto statement' to do backward debugging in ABAP 详解编程语言

Goto statment available in Classic Debugger menu:

Debugger -> Control -> Goto Statement

Goto statment available in New Debugger menu:

Debugger -> Control -> Goto Statement

原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/19968.html

(0)
上一篇 2021年7月19日
下一篇 2021年7月19日

相关推荐

发表回复

登录后才能评论