SAP的ABAP调试器怎么使用

这篇文章主要讲解了“SAP的ABAP调试器怎么使用”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“SAP的ABAP调试器怎么使用”吧!

创新互联公司拥有10年成都网站建设工作经验,为各大企业提供成都网站设计、网站制作、外贸营销网站建设服务,对于网页设计、PC网站建设(电脑版网站建设)、重庆App定制开发、wap网站建设(手机版网站建设)、程序开发、网站优化(SEO优化)、微网站、空间域名等,凭借多年来在互联网的打拼,我们在互联网网站建设行业积累了很多网站制作、网站设计、网络营销经验,集策划、开发、设计、营销、管理等网站化运作于一体,具备承接各种规模类型的网站建设项目的能力。

首先弄清楚ABAP Classic调试器和新调试器的区别:

SAP的ABAP调试器怎么使用

Classic debugger:

(1) Static breakpoint

a. BREAK-POINT : non-user specific
b. BREAK user name user specific

(2) Dynamic breakpoint

New debugger:

(1)Static breakpoint
(2)Dynamic breakpoint
a. session breakpoint
b. external breakpoint

SAP的ABAP调试器怎么使用

Session 断点和External断点的区别

(1) Session BP is only visible in all external sessions belonging to the same user session, while External BP is visible across all user sessions. Therefore, only External BP is valid for BSP / Webdynpro debugging.

(2) When a user logs off, Session BP will be deleted while external BP persists.

SAP的ABAP调试器怎么使用

By setting this flag, if external session A is running, and in external session B ( A and B belongs to the same user session ) you set a session breakpoint in the program source code, the BP will be triggered immediately .

SAP的ABAP调试器怎么使用

ABAP独占断点(Exclusive Breakpoint)和非独占断点的区别

下图是非独占断点:

SAP的ABAP调试器怎么使用

下图是独占断点:

SAP的ABAP调试器怎么使用

Exclusive mode means the application to be analyzed exclusively occupies a work process of the application server during debugging. If all exclusive debug work processes are occupied, the Debugger is switched to non-exclusive mode. (rdisp/wpdbug_max_no )

Limitation for non-exclusive mode:

Due to technical limitations in ABAP debugger implementation, there are following limitations when debugger is run under non-exclusive mode:
(1) No possible to debug statement between SELECT and ENDSELECT. In this case, program terminates with this error:

SAP的ABAP调试器怎么使用

(2) No possible for conversion / field exit.
(3) No possible for debugging in production system, program terminates with exception DEBUGGING_NOT_POSSIBLE.

ABAP调试器里的一些指标该如何阅读?

考虑下面这段最简单的ABAP代码:

SAP的ABAP调试器怎么使用

调试器里查看A1这个类型为内表的变量:这里的[2×1(8)]是什么意思?

SAP的ABAP调试器怎么使用

2: table row number
1: table column number
8: byte length of table row

The time for which the new Debugger is active is determined by the profile parameter rdisp/max_debug_lazy_time – which is set to 600 seconds in the standard version. After this time space has elapsed, the Debugger process is exited automatically and control is passed back to the application.

一些小技巧:how to debug background RFC?

SAP的ABAP调试器怎么使用

解决方案:使用事务码sbgrfcmon

SAP的ABAP调试器怎么使用

SAP的ABAP调试器怎么使用

SAP的ABAP调试器怎么使用

小技巧2:如何调试update task

SAP的ABAP调试器怎么使用

小技巧3:如何使用ABAP观察点 Watch point

SAP的ABAP调试器怎么使用

练习:我们进入事务码SE09时,会观察到User字段会自动被填充成当前登录用户。如何通过观察点快速找到是哪一行代码赋的值?

When we use SE09, how can we find the logic of the User? When and where is this field filled? What does content come from?
Debugging step by step will be very time-consuming.

小技巧4:使用ABAP检查组 Check group

SAP的ABAP调试器怎么使用

小技巧5:事务码SRDEBUG

SAP的ABAP调试器怎么使用

SAP的ABAP调试器怎么使用

小技巧6:调试脚本

SAP的ABAP调试器怎么使用

感谢各位的阅读,以上就是“SAP的ABAP调试器怎么使用”的内容了,经过本文的学习后,相信大家对SAP的ABAP调试器怎么使用这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是创新互联,小编将为大家推送更多相关知识点的文章,欢迎关注!

分享标题:SAP的ABAP调试器怎么使用
文章起源:https://www.cdcxhl.com/article48/ppjjhp.html

成都网站建设公司_创新互联,为您提供网站建设关键词优化服务器托管手机网站建设网页设计公司网站策划

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联

成都网页设计公司