Regarding debugger...

Hi,
     Can anybody provide the material for debugger in ABAP.
Thanks in advance
Badri.

Hi Badri,
check this material.
The ABAP/4 debugger is the development workbench tool, which allows you to stop a program during its execution when a particular condition is met.  When the program is stopped, you can use the debugger to display the contents of the table and variable being used by the program.  It allows you to execute the program step by step, reviewing exactly the real flow of the program execution.
There are many occasions during normal system operation during which the ABAP/4 debugger can be started.  When executing program, the ABAP/4 debugger is automatically started when the system encounters a breakpoint.
Starting the ABAP/4 debugger
There are many ways to start debugger
•     By clicking the Execute button and selecting the debugging mode.
•     From the ABAP/4 editor, by executing a program choosing Program  Execute  Debugging from the menu.
•     Setting breakpoint in the program
Components of ABAP/4 debugger
The debugger shows the program information using six different views.
•     Fields: Displays the field contents.
•     Table: Allows modifying the contents of internal table.
•     Breakpoints: Displays list of Breakpoint in the Program.
•     Watchpoints: Allows dealing with Watchpoints.
•     Calls: System call status like Event, Form etc.,
•     Overview: Presents the program structure, events, subroutines, and modules.
•     Settings:  Displays the calling sequence within a particular event, up to the current breakpoint.
Arrow indicates the breakpoint of the program i.e., where user has stopped the program.
Breakpoints
A breakpoint is the signal, which is specified in the program, tells the system to stop the program execution and to start the debugger.  Following types of breakpoint are available with ABAP/4:
•     Static are set up with the BREAKPOINT keyword inside the program, which you can directly display with the ABAP/4 source code editor.  To set the breakpoint in the program enters the keyboard BREAKPOINT.
•     Dynamic this breakpoint is not visible in the code.  Position the cursor over the source code line to have the breakpoint and then select utilities -  breakpoint -  set.  You can delete them or display them from breakpoint list.  Or you can execute the program in the ABAP/4 debugger i.e., in debugging mode.
•     Watchpoints are field specific.  The program is stopped when the field reaches the value specified in the watchpoint.  Execute the program in debugging mode.  Position the cursor over the needed field.  Press the F button to get the view of field.  Select the checkbox for the needed watchpoint.  Click on the continue button.
•     Keywords/events The program stops just before executing a specific event or keyword.  To set breakpoint at particular event, from initial screen of debugger, select Breakpoint  Breakpoint at  at event/at keyword.  Enter the name of the keyword or event.  Click on OK.
Navigating through the breakpoint
Following buttons are used to navigate through the program and debugger.
•     Single step:  Executes a single program command.
•     Execute:  Similar to the single step, but when a program calls a subroutine, it executes the whole subroutine unlike single step.
•     Continue: Executes the program until it is finished or until it finds next breakpoint.
•     Return:  Allows for executing the program instruction up to the end of a routine and stops in the line of code where the subroutine gives back control to the main program.
•     Tables:  Switches the debugger to the table view.
Displaying and modifying values
Every time the program is stopped within a debugger, you can display and modify the contents of table field and fields.
To display the fields, click on V and you can view the contents of system field, program field, ABAP/4 dictionary fields, and external program fields.
Displaying and modifying internal tables
When you click on the Table button from the initial ABAP/4 debugger screen, the system will display the table debugger view.  Here you need to enter the name of the internal table to be displayed.  You can modify or delete or add i.e., insert the internal table Contents.  These changes are applicable only for the debugging and do not affect the structure of internal table in the program.
Setting WATCHPOINTS
•     Execute a program in debugging mode.
•     Position the cursor over the needed field.
•     Press the F button to get a view of the fields.
•     Select the checkbox for the needed watchpoint.
•     Click on the CONTINUE button.
•     To display the active watchpoint select Goto -  Breakpoint
Thanks & Regards,
kalyani A

Similar Messages

  • Regarding watch points in ABAP debugger

    Hi,
    Could u explain , why we use watch points, what is the use of it
    and how to use it.
    Thanks & regards,
    [email protected]

    Watch points
    http://help.sap.com/saphelp_nw04/helpdata/en/c6/617cdce68c11d2b2ab080009b43351/content.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/14/6d1c370c468b7be10000009b38f936/frameset.htm
    Like a breakpoint, a watchpoint is an indicator in a program that tells the ABAP runtime processor to interrupt the program at a particular point. Unlike breakpoints, however, watchpoints are not activated until the contents of a specified field change. Watchpoints, like dynamic breakpoints, are user-specific, and so do not affect other users running the same program. You can only define watchpoints in the Debugger.
    Use
    You set watchpoints in the Debugger to monitor the contents of specific fields. They inform you when the value of a field changes. When the value changes, the Debugger interrupts the program.
    Features
    You can set up to five watchpoints in a program.
    See also Setting Watchpoints.
    You can also specify the conditions on which a watchpoint is to become active.
    You can specify logical conditions between up to five conditional watchpoints.
    See Specifying a Logical Expression.
    You can define watchpoints as either local or global. If you define a global watchpoint, it is active in all called programs. Local watchpoints are only active in the specified program.
    You can change and delete watchpoints.
    See Changing Watchpoints.
    You can use watchpoints to display changes to the references of strings, data and object references, and internal tables.
    See Memory Monitoring with Watchpoints
    If you want to interrupt a program when the contents of a field or structure change, use a watchpoint. You can set up to five watchpoints, including watchpoints for strings.
    A watchpoint can be either local or global. Local watchpoints are only valid in the specified program. Global watchpoints are valid in the specified program, and also in all the other programs it calls.
    Procedure
    To set a watchpoint, start the Debugger and proceed as follows:
    Choose Breakpoint ® Create watchpoint or the corresponding pushbutton. The Create Watchpoint dialog box appears:
    ashish
    Message was edited by:
            Ashish Gundawar

  • Unable to see function return values in Visual Studio 2013 debugger

    Hi!
    I can't see function return values in
    Microsoft Visual Studio Ultimate 2013
    Version 12.0.31101.00 Update 4
    Microsoft .NET Framework
    Version 4.5.51650
    Installed Version: Ultimate<o:p></o:p>
    as described in  http://blogs.msdn.com/b/visualstudioalm/archive/2013/06/27/seeing-function-return-values-in-the-debugger-in-visual-studio-2013.aspx
    So what can I do to get this functionality back?
    MsdnMezzo

    Hi MsdnMezzo,
    Reference:
    http://blogs.msdn.com/b/visualstudioalm/archive/2013/06/27/seeing-function-return-values-in-the-debugger-in-visual-studio-2013.aspx
    If use the same sample in the above blog provided by you, how about the result? Could you debug it with the same steps? I could debug it in my side using the VS2013.
    So to make sure that whether it is your VS IDE issue, please debug it with this sample, if it works well, I doubt that we would think about your specific project and the debugging steps.
    If so, to really repro this issue, could you share us a sample with one drive? You could upload your project to one drive and share us the downloaded link in your new reply, I will download and repro this issue in my side.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to debugg particular statement in sap script

    hi friends,
    i want to know How to debugg particular statement in sap script.
    plz reply.
    thanks in advance,
    regards
    bhaskar

    hi
      execute rstxdbug to activate script debugger...once the driver program reaches open_form, a popup box will come where u can mention the name of a command, call functinon, text element, etc to place a break point...once it gets into the debugging mode, double click on any line to set a break point, after that pressing f8 will get you to that line
    if helpful, reward
    Sathish. R

  • How do I "see" a check function module in the debugger?

    I am correctly starting a custom workflow based on an event raised by standard SAP code in transaciton QE51N.
    I have to write a check function module to interrogate the event and start/not start
    the workflow because the same event is raised by SAP code in transaction QA02, and I have to be sure to start the workflow only if the event is raised in QE51N, not QA02.  (I also have to check some other properties of the QALS row for the inspection lot.)
    I know how to code the check function module, but if I need to debug it, how do I "set-up" for seeing the check function module in the debugger?
    I'm sure this is an obvious question and that I'm missing something simple.
    So thanks in advance for the answer.
    djh

    Dear DJH,
    Put a break-point in the function module and process the transaction. It will stop at runtime.
    Hope this will help.
    Regards,
    Naveen.

  • Transaction code to debugg smartforms

    transaction code to debugg smartforms ? plz tell me

    hi,
    1.One way to debug smartform is to debug the Function Module of that smartforms.
    2. If you want to debug particular smartform node that the solution is, insert a "Program Line" just above the node you want to debug and this program line write a normal abap break-point.So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards.
    3) SFTRACE can be used for debugging SMARTFORMS.
    Read More about SFTRACE here.
    http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    Regards
    Shameem.

  • General Question Regarding Image Processing

    Hi All,
    I need a suggestion regarding image processing and this is the best place to get best advise.
    we need an image processing utility for our web processing.
    requirements are as described below:
    we have a e commerce based application where we need to display product images which we are currently displaying successfully.
    now we have to provide user with image processing functionality like user can zoom image can flip image can rotate image.
    what we want like when user click on zoom we can generate a dynamic image of that region based on a single source of image and can provide zooming functionality.
    more over company requirements is to go for only open source solution [:-)]
    we tried some open source solutions but due to the in house E-Commerce framework constraints we not able to integrate them,.
    can any one point me to any open source java based library so that we can use that to provide solution or do we need some other approach.
    Here is a link for a image zooming example hough this is highly professional solution using Adobe Scene7 but we want to implement something like in image zooming
    [Zoom Demo|http://s7d2.scene7.com/s7ondemand/zoom/flasht_zoom.jsp?company=S7Web&sku=AnthroISwebDemo&config=S7Web/AnthroISwebDemo&zoomwidth=500&zoomheight=500&viewer=/skins/S7Web/SWFs/loaders/genericzoomLfour.swf&vc=codeRoot%3D%2Fis-viewers351%2Fflash%2F]
    any help in this regard will be much appreciated.
    Thanks in advance
    -Umesh

    It is never safe to assume that any allocation was successful, and while it's incredibly unlikely that you're running into any such situation, it's entirely possible for a formal protocol to declare that a given message send should return immediately without waiting around:
    http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/ch apter13_section_8.html#//appleref/doc/uid/TP30001163-CH9-BAJIGHAF
    An "impression" doesn't prove much unfortunately, so I'd recommend getting friendly with the debugger to see what's really going on.

  • How to change the value of a variable in new ABAP debugger.

    Hi Guys,
                 I can't change the value of a variable in the new ABAP debugger.. when I change its revert back to old value. but this is not the case with the old version. How to do this..
    Cheers
    Senthil

    Hi,
    1. Dobule click in the variable in the variable tab.
    2. Click the Change icon in Detail.Dis.
    3. enter the new value and press enter
    Refer
    [http://www.sapdb.info/new-abap-debugger/|http://www.sapdb.info/new-abap-debugger/]
    [http://help.sap.com/saphelp_nw70/helpdata/en/84/1f624f4505144199e3d570cf7a9225/content.htm|http://help.sap.com/saphelp_nw70/helpdata/en/84/1f624f4505144199e3d570cf7a9225/content.htm]
    <removed_by_moderator_together_with_points>
    Regards,
    SB
    Edited by: Julius Bussche on Jun 24, 2008 8:21 AM

  • How to Get the Debugger Screen in WEB Front end of SRM

    Hi Gurus,
    I have couple of questions for SRM.
    1. How to Get the Debugger Screen in WEB Front end of SRM so i can debug the application which is running in EBP system??
    2. How to set the flag for external debugging (HTTP)??
    3. Using SICF how to set the ITS services ( Like BBPSC01 )for internal ITS so as soon as i place the order it should stop at the break point which i have set in the application.
    Thanks.
    Regards,
    Manoj Tiwari

    Setting up Debugging for Integrated ITS
    Tcode SICF.
    Select service (e.g. default_hostàbcàguiàsapàitsàbbpsc01).
    Change service settings and insert parameter ~GENERATEDYNDPRO=1.
    Find program to debug. E.g. SE93. Enter bbpsc01 à Display and get Program field (SAPLBBP_SC_UI_ITS)
    Execute SE38 and enter program name.
    Turn HTTP Debugging ON. UtilitiesàSettingsàDebugging. Click Actv and username.
    Add HTTP Breakpoint. Display source code and select Utilitiesàbreakpointsàset.
    On “External Debugging” select ‘HTTP Breakpoint’.
    Remember to remove breakpoints, deactivate debugging and remove parameter GENERATEDYNPRO.
    Can run program RSBREAKPOINTS to find which programs you have breakpoints set in.
    Have fun with EBP
    If you have any more questions i would be happy to help you. Send me mail on [email protected]

  • Transact-SQL debugger not working in SQL Server 2008: "...debugger does not support SQL Server 2005 or earlier..."

    I have recently installed SQL Server 2008. When I try to execute a query against an Access database, I receive this debugging error:
    "Unable to start Transact-SQL debugger. The Transact-SQL debugger does not support SQL Server 2005 or earlier versions of SQL Server. (SQLEditors)"
    Nor will the query execute; I get a transport-level error 0. Any thoughts?

    Hi Davidmhjr,
    >>Unable to start the Transact-SQL Debugger. The Transact-SQL Debugger does not support SQL Server 2005 or earlier versions of SQL Server. (SQLEditors).
    Have you tried to restart the server once you have installed SQL Server 2008? As Naomi N mentioned please check the version of SQL Server you are using.
    If you tried to connect to SQL Server 2005 from SQL Server 2008 SSMS, you would not be able to debug and get this error, it happens because T-SQL debugger includes both server-side and client-side components. The server-side debugger components are installed
    with each instance of the SQL Server 2008 Database Engine. The client-side components are installed when you install the SQL Server 2008 client-side tools.
    So it works with SQL Server 2008 only so far. Another way is you can triy to use SQL Server 2005 SSMS to connect to SQL Server 2005.
    More information about configuration requirement to run T-SQL debugger as below, please refer:
    There are no configuration requirements to run the Transact-SQL debugger when SQL Server Management Studio is running on the same computer as the instance of the SQL Server Database Engine. However, to run the Transact-SQL debugger when SQL Server Management
    Studio is running on a different computer from the instance of the Database Engine, you must enable program and port exceptions by using the Windows Firewall Control Panel application on both computers.
    On the computer that is running the instance of the Database Engine, in Windows Firewall, specify the following information:
    •Add TCP port 135 to the exceptions list.
    •Add the program sqlservr.exe to the exceptions list. By default, sqlservr.exe is installed in C:\Program Files\Microsoft SQL Server\MSSQL10.InstanceName\MSSQL\Binn, where InstanceName is MSSQLSERVER for the default instance, and the instance name for
    any named instance.
    •If the domain policy requires network communications to be done through IPsec, you must also add UDP port 4500 and UDP port 500 to the exception list.
    On the computer that is running SQL Server Management Studio, in Windows Firewall, specify the following information:
    •Add TCP port 135 to the exceptions list.
    •Add program ssms.exe (SQL Server Management Studio) to the exceptions list. By default, ssms.exe is installed in C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE.
    Hope it is helpful.
    Regards, Amber zhang

  • How to debug Abap List in New Debugger?

    Hi All
    How can we debug the ABAP list in the new debugger? I know that it can be done by switching to old debugger.
    Or
    Did SAP by any chance missed this option?
    Regards,
    Rupesh

    You can just look for this variable  (SAPMSSY0)%_LIST
    it is an internal table of the current list; double_click on it and you will get a look at the contents of the table
    slide your horizontal scroll bar to the right till you get the field LINE . Here we go !
    18.08.2011                         Progr. ZIPPO_FOR_ALL_SERVICE                                1#1########`
    ##########R
    ##########R
    LH  0400 DE  FRANKFURT            FRA US  NEW YORK             JFK 6.162,0000  KM               ##########R
    LH  0400 DE  FRANKFURT            FRA US  NEW YORK             JFK 6.162,0000  KM               ##########R
    LH  0401 US  NEW YORK             JFK DE  FRANKFURT            FRA 6.162,0000  KM               ##########R
    LH  0401 US  NEW YORK             JFK DE  FRANKFURT            FRA 6.162,0000  KM               ##########R
    Edited by: luciano puppo on Aug 18, 2011 11:36 AM

  • ABAP Memory value in ABAP Debugger

    Hi,
    Is it possible to view the value of ABAP memory IDs in ABAP debugger?
    I know we can view the active ABAP memory IDs in debugger using Goto -> System Areas -> ABAP Memory
    Whereas my question is for those listed ABAP memory IDs, can we see the value in debugger itself?
    Thanks in advance.
    Regards,
    Balaji Viswanath.

    Hi,
    Did you sort out your problem yet? I am looking for the same. So far I know one can get the ABAP stack with the FM SYSTEM_CALLSTACK. This returns the stack but I still have not figured out how to access any stack objects yet.
    Let me know,
    Andreas

  • Timeout Issue in ABAP Debugger

    Hi All,
             Is there any way to increase the timeout for ABAP Debugger. Whenever  I have to cebug, and if i need to check other application at the same time, once I come back to debugger, it gets exited , due to TIMEOUT.
    Can you please help.
    Regards.,
    Muzammil.

    Hi,
    I think the execution of your program is taking a lot of time....check your logic of the program...avoid nested loops..try to increase the performance of your program....avoid nested queries...you can take help from the internet about " how to increase the program's performance"....your problem will be solved...this is not the BASIS issue...
    Arunima

  • Can I use the Debugger to debug why a line in UPDATE RULE gives no values?

    Hi,
    in a simple Update Rule, I had the routine below:
    RESULT = SOURCE_FIELDS-QTY.
    "( The goal was to calculate the field MyCclQTY in the cube; Routine was between ODS and Cube ):
    The cube output gave a BLANK while QTY has 300; although I expected to see 300 for MyCclQTY:
    e.g. of Cube Output:
    QTY---MyCclQTY
    300------BLANK
    In the attempt to see what is going on, I used the Debugger for the first time.
    In the update routine for MyCclQTY, I added the line break-point as follows as a booklet I am reviewing, directs:
    Break-Point.
    RESULT = SOURCE_FIELDS-QTY.
    Now when I switched to the debugging mode, I run Single Step.
    I was not too sure what to do here other than, continuously clicking on Single Step.
    When it got to the line:
       == >    catch cx_sy_move_cast_error.
    A message appeared at the bottom of the screen
    u201CException from the class CX_SY_MOVE_CAST_ERROR was caught u201C appeared at bottom of screen.
    1. Any hints on this message?
    2. On the screen in the booklet that I am review, there was a split screen with the one on the right side showing values but I could not get that on my screen. Any hints on that?
    Thanks.

    Hi........
    You can try to catch this exception :
    Dynamic Proxies in ABAP Part 2: RTTI Retrieval
    Regards,
    Debjani..........

  • Possible workaround for: Launch Debugger Error "Unable to connect to the RDS server"

    I do not yet have a reproducible case for this. *Sometimes* ColdFusion Builder throws the "Unable to connect to the RDS server" error, when attempting to start a debug session against a remote server. However, "RDS Dataview" and "RDS Fileview" views correctly list the servers and their related data/file, and testing RDS connection result is "Test connection was successful". The workaround is:
    1. Login to the ColdFusion Administrator
    2. Navigate to "Debugger Settings" page (beneath "Debugging & Logging")
    3. Click on "Stop Debugger Server" -or- "Restart Debugger Server"
    4. Restart ColdFusion Application Server
    Notes:
    a) Step #3 must be done via ColdFusion Administrator, not via ColdFusion Admin API (stopLineDebugger()|restartLineDebugger())
    b) Step #4 can be done via ColdFusion Administrator -or- ColdFusion Builder
    c) Note that there is a CF9 Release Note for Bug #78488: "When a server having "Windows service option" ENABLED is added as a remote server, then Start-Stop-Restart operation cannot be done on it."  However, I've found that "Restarting" a remote server, that is running as a Windows service, is possible in ColdFusion Builder (at least this is so on standalone developer edition).  Like Bug #78488 says, I am unable to "Stop|Start" a remote server that is running as a Windows service. I'm just mentioning all of this, due to my suggestion in "b", that CF can also be restarted via ColdFusion Builder.
    It is interesting that attempts to stop|restart the debugger server, via CF Admin API, do not resolve the issue. So, it seems that the "Stop Debugger Server" and "Restart Debugger Server" buttons, in CF Admin, are doing more than calling the corresponding CF Admin API methods.
    Attached is an image of the error.
    Just posting all of this as an FYI, in case it helps anyone.
    Thanks!,
    -Aaron Neff
    (OH.. I'm unable to attach images at this time *DOH!* ..well, I'll try to remember to update this post w/ the image, once I see that attachments are allowed.)
    I'll try to describe the error message window:
    - It is 494x452 pixels
    - Title of the window is "Error occurred while launching the Debugger"
    - Body content of the window is as follows:
    Unable to connect to the RDS server 'ServerNameHere'
    Ensure that the server is currently running and that line debugging and RDS are enabled. You may also need to check your RDS connection settings in Eclipse to ensure that they are correct.
    Error Message:
    -1:Error connecting to JVM for debugging at localhost:5005. Could not attach to the VM at port 5005. You must specify this debugger port in the JVM settings of your application server, for example: -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005. You will also need to make sure that another debugger is not currently connected to the CF JVM at the same port (5005).
    Root cause ->
    Connect refused: connect

    hi,
    I have been facing the same problems while connecting to Oracle Web Conferencing and is getting error message :Unable to connect to the server. The Web COnferencing Console will now close. Please try again later. If the problem persist, contact your system administrator.
    Diagnostic report shows failed on the connectivity part
    Connectivity
    mx-direct Failed
    0:00:00.719 Connecting to web331.oracle.com:1025
    0:00:00.922 Name resolved to 148.87.108.234
    0:00:21.906 connect() failed (0x8007274C)
    0:00:21.906 Connection failed (0x8007274C)
    Pl help me to fix the problem.
    Regards
    Gobind Ahuja

Maybe you are looking for

  • Problems in New Pricing Condition type

    Dear SDN'ers! Please help me to know if this is doable. Here is my requirement If a line items qualifies for the per title unit minimum, but not the per order minimum no discount will be applied and vice versa, if a line item qualifies for the order

  • "Get  Info" function is very slow

    I have a 24" iMac (2.8 ghz core 2 duo, 4GB Ram) running 10.6.3. Anytime I select a file and choose "Get Info" from the right click menu, I get the dreaded spinning beach ball for approx 10 seconds before the file's info window is displayed. On this s

  • Hi  have the ipod touch and having issue with the reminders app. do not have the reminders page  just the completed page

    hi  have the ipod touch and having issue with the reminders app. do not have the reminders page  just the completed page

  • Help Needed On Program! Please

    Alright, sorry for all these threads but they are totally different topics. Now, with this code I am just trying to count how many times each string has been shown (without repeating). It works for the most part but it is missing some for some reason

  • How I can download Safari 6.0 for Lion

    Dear friends. Unfortunatly  I'm delete Safari from my Application Folder, I'm know I'm stuppid But now via Software Update I don't see download Safari 6.0 and I can't install Safari 5.1.7 for upgrade to Safari 6.0. Well, where I can download Install