您好,登錄后才能下訂單哦!
這篇文章主要講解了“SAP的ABAP調試器怎么使用”,文中的講解內容簡單清晰,易于學習與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學習“SAP的ABAP調試器怎么使用”吧!
首先弄清楚ABAP Classic調試器和新調試器的區別:
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
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.
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 .
ABAP獨占斷點(Exclusive Breakpoint)和非獨占斷點的區別
下圖是非獨占斷點:
下圖是獨占斷點:
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:
(2) No possible for conversion / field exit.
(3) No possible for debugging in production system, program terminates with exception DEBUGGING_NOT_POSSIBLE.
ABAP調試器里的一些指標該如何閱讀?
考慮下面這段最簡單的ABAP代碼:
調試器里查看A1這個類型為內表的變量:這里的[2×1(8)]是什么意思?
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?
解決方案:使用事務碼sbgrfcmon
小技巧2:如何調試update task
小技巧3:如何使用ABAP觀察點 Watch point
練習:我們進入事務碼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
小技巧5:事務碼SRDEBUG
小技巧6:調試腳本
感謝各位的閱讀,以上就是“SAP的ABAP調試器怎么使用”的內容了,經過本文的學習后,相信大家對SAP的ABAP調試器怎么使用這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是億速云,小編將為大家推送更多相關知識點的文章,歡迎關注!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。