SQL Server administration and T-SQL development, Web Programming with ASP.NET, HTML5 and Javascript, Windows Phone 8 app development, SAP Smartforms and ABAP Programming, Windows 7, Visual Studio and MS Office software
Development resources, articles, tutorials, code samples, tools and downloads for SAP HANA and ABAP, HANA Database, SQLScript, SAP UI5, Screen Personas, Web Dynpro, Workflow

Enable Remote Debugging in ABAP using RSRDEBUG

If ABAP developer enable remote debugging in ABAP using RSRDEBUG, programmer can debug another user's session. The ABAP programmer has to configure debugging settings to debug the target user and then has to enable remote debugging in ABAP by executing the rsrdebug program.

This ABAP tutorial shows how to enable remote debugging in ABAP for a selected SAP user.

Debugging Settings and Set External Breakpoints

Open ABAP report or program code, for example the SAP Web Dynpro method within SE80 ABAP Workbench.
Using top menu follow selections: Utilities > Settings...

debugging settings for ABAP developer

Switch to ABAP Editor tab. Then choose Debugging Settings tab.
Provide the user name which is the user that you want to debug his/her external requests from your session.

switch to new Debugger using Debugging Settings for ABAP programmer

Press Enter.
If everything is OK, you will probably be informed with a following info message:
Breakpoint set for external debugging (System-wide, user: KODYAZ, validity: 2 hours)
Message no. SHTTP087

Within the ABAP codes, add the external breakpoints to targeted code lines.


RSRDEBUG to Enable Remote Debugging in ABAP

Call SAP transaction SE38, Initial Screen of ABAP Editor.
In the Program textbox, type the program name RSRDEBUG which is the Remote ABAP Debugging
Then execute ABAP program RSRDEBUG Remote ABAP Debugging with Execute icon or F8 shortcut.

A list of current remote debugging sessions are listed on the initial screen.

activate remote debugging in ABAP

To start a new remote debugging session, press F8 or press on Activate Debugging button.
When below screen is displayed enter the user name you want to debug and press Enter.

activate remote ABAP debugging using rsrdebug

A confirmation message dialog screen will be displayed. Do not press any button (Yes or No) until you finish your ABAP debugging task. When you are finished with remote ABAP debugging, press the Yes button to end remote debugging.

end remote ABAP debugging


Now ABAP programmer is ready to debug activities in an other user's session.
Let the target user start the application you want to debug. The breakpoint will hit and the developer can continue step by step debugging analyzing the variable values, etc as usual.



SAP HANA and ABAP

Install SAP Free
CRM Companies List
Web Based CRM Software


Copyright © 2004 - 2021 Eralper YILMAZ. All rights reserved.