!--a11y-->
Debugging ABAP Code from Within the Developer
Studio 
Let us assume you have a Web Dynpro application that calls function modules using Adaptive RFC, and you want to debug the corresponding ABAP code from within the Developer Studio.
You can do this quite simply, provided that the SAP GUI is installed on your local machine and the ABAP system is connected to via a dedicated server (no load balancing). You then only have to activate the relevant setting for external debugging in the ABAP Workbench and set the breakpoint in the ABAP code before starting the Web Dynpro application on the J2EE Engine.


You should log on with the same user with which the call will take place.
Due to the large amount of parallel calls, using a collective user is not recommended.
You should try to execute the application with a dedicated user throughout the duration of the debugging session.
from
the toolbar. The relevant line is highlighted.


Note that the validity period for the external breakpoint is limited to 2 hours. If you require more time to debug, you must set the breakpoint again.
The following example of a Web Dynpro application is used to display flight data from the SAP system in a table.

The J2EE Engine establishes a connection to the SAP GUI and starts the ABAP Debugger in a new GUI session. The Debugger is stopped at the line in the ABAP code at which the breakpoint is set.
