ā2013 Feb 26 9:38 AM
hi,
i have to debug a 10k lines of code which will take an hour to execute,nd i want to debugg for a pirticular itab values in different parts of code, what i did is i put break points in the required places (ex:at line 150 nd line3000).when i execute first break point reached nd again i press f7 r f8 controll is going back to first break point only.if i remove the first break point after execution of that line,it is takin more than 30 mins to reach the next break point.is there anyway to do it fast.i.e moving from one break point to another .
ā2013 Feb 26 10:10 AM
Hi
In debug mode use the continue to cursor (shift+f8) i hope it will use for that time .
Regards
Mahesh
ā2013 Feb 26 10:10 AM
Hi
In debug mode use the continue to cursor (shift+f8) i hope it will use for that time .
Regards
Mahesh
ā2013 Feb 26 10:12 AM
Dear Krishna,
If you are putting break point in the loop then it will take time to reach 2nd break point
try to put break point after loop or before loop.
regards
Yogesh
ā2013 Feb 26 10:17 AM
Hello Krishna,
Start your program in debug mode. And use ' goto statement ' option to reach directly at your desired point.
sometimes it is possible and sometimes not....just check with your case.
Hope it work.
Regards,
Sudhir Kothavale.
ā2013 Feb 26 11:07 AM
what is the difference b/w 'goto statement' and ' continue to cursor' .in debugger
ā2013 Feb 26 11:21 AM
GOTO STATEMENT : the execution will jump to the mouse cursor in the program
CONTINUE : it will go the next break point
Eg : if u executed the program upto 100 lines. if u want to go back to line no. 50 u can place cursor there in 50th line and press goto statement. The control will go to 5o th line..
ā2013 Feb 26 11:44 AM
ā2013 Feb 26 11:58 AM
ā2013 Feb 26 1:53 PM
http://help.sap.com/saphelp_nw73ehp1/helpdata/en/67/9664bc4ac74d2d82a05f458396797c/content.htm
FYI please check above information .
Regards
Mahesh
ā2013 Feb 26 10:18 AM
Dear Krishnasree,
U already mentioned the over all program execution is taking 1 hour time. So it may take 30 min to reach the next break point. Check your codes and improve the peformance by following the coding standards...check following points..
ā2013 Feb 26 10:18 AM
Hi Krishna,
As an alternative, put '/H' and then execute. When you enter in, in the new debugger, put a break point for Message. You have such an option. So you code will then stop at the lines that contain 'Message'.
I generally debug like this and it helps. Try and let me know if this helps you too!
ā2013 Feb 26 10:47 AM
Hi,
You can use watchpoints. Thats the best thing you can do.
Please do let us know if still you are facing the issue.
Regards
Purnand
ā2013 Feb 26 11:07 AM
Hi Krishna,
You wrote:
"i want to debugg for a pirticular itab values in different parts of code"
If you want to stop in case of particular value is set to variable, please try to use watchpoint. It is feature that allows you to stop in the code, in case when variable reaches expected value.
Proposed steps:
1. Set breakpoint in some of the first lines of program
2. Go to menu Breakpoints -> Create watchpoint
3. Type the name of structure and its component (column) and provide value in condition that you expect, like below:
Then your program will stop when ls_table_line reaches values that you want. You can define own WHERE condition criteria, define many watchpoint for different variables.
Hope it helps.
Regards,
Adam
ā2013 Feb 26 12:51 PM
Hi,
Please try to add some new points. The point you mentioned has already been told.
Regards
Purnand
ā2013 Feb 26 2:16 PM
Hi Purnand,
I agree with you, we should not repeate solutions that were already proposed as it is waste of time for others. On the other hand, not everyone knows how to add watchpoint for internal tables monitoring so I just prepared ready answer for the author.
As you can see my post is right behind yours, we started at similar time and I have not seen your post before mine. I just spent more time on editing and preparing content
Regards,
Adam
ā2013 Feb 26 2:35 PM
ā2013 Feb 26 11:29 AM
Hi Krishna,
I just want to let you know that:-
Your code needs to be properly optimised so that the execution time is minimum to debug.
And one more thing is a standard debuger can be active for 600secs.
Thanks,
Bishwajit.
ā2013 Feb 26 11:41 AM