Showing posts with label System Debugging. Show all posts
Showing posts with label System Debugging. Show all posts

20/03/2013

System Debugging

System Debugging


 Consider the following program, which contains a simple call to the function module ICON_SHOW. 


Set a break point at the CALL FUNCTION statement and now execute the program 

  

Ensure that the system debugging is switched off, by selecting Settings à system debugging.
On pressing F5, instead of going into the code of the function module, the function module is executed and the following pop-up is shown:

Select a record and press CONTINUE, the program is executed without going into the debug mode of the function module. Reason? 
Now go to the function module ICON_SHOW. Select Go to à Main Program.

 

Now again select Go to à Attributes
 


From the above screenshot, it is understood that the program status is ‘S’ (System program). In order to debug the system program, we need to set the system debugging ON. Now repeat the above debugging by setting system debugging ON. This time, we should be able to debug the function module. 
Can we set the custom programs as system programs? 
Go to our program which has a call to the function module ICON_SHOW. Set the debug point at the CALL FUNCTION statement. 

Now try debugging the program with system debugging off. This time, the debug point will not even reach the CALL FUNCTION statement. Once you turn the system debugging ON, both our program and the standard function module could be debugged.