Skip to Content
author's profile photo Former Member
Former Member

Help in Debugging

Hi All,

I have one variable in one loop.Now i want to go to that variable

everytime it's value is negative.Now with breakpoint and watchpoints i can go to that place in code when it is becoming negative first time.

Any way in debugging where i can rach that place in code everytime the variable becomes negative.

Thanks in Advance,

Saket.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 13, 2008 at 05:45 AM

    can you give the code ?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 13, 2008 at 05:48 AM

    suppose the variable u are talking abt is wf_var.

    then in side the loop, or the portion to which u want to come during debugging..write the following..

    if wf_var < 0.

    break-point.

    endif.

    now evry time the value of wf_var is negative u ll go in to the code while debugging

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 13, 2008 at 05:50 AM

    Hi,

    Iam not sure of the classical debugger, but if the debugger is new debugger then you can follow this steps:

    1. Execute the program in debugging mode.

    2. Scroll the program and keep the cursor at the place where you want to check.

    3. Press Shift + F8.

    With this the debugging point comes to the place where you kept the cursor by executing all the code present above the cursor.

    Hope thsi will help.

    Regards,

    Swarna Munukoti.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 13, 2008 at 06:01 AM

    Dear,

    first check that itab on which u r puting loop.

    and debugger activate on loop and chack the value in this internal table or whatever.

    Thanks,

    jaten

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 13, 2008 at 06:15 AM

    Hi Saket,

    If you know how to use watchpoints you can reach every point in your code where the variable goes negative.

    For this you have to create a watchpoint in classic debugger ( if u r in new ABAP debugger switch to classic from debugging menu) with condition your variable < 0, now whenever this variable goes negative the program will stop at that point in code.

    Hope this solves your problem.

    Thanks,

    Hitesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 11, 2008 at 05:28 AM

    Thanks for all help.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.