SAP-Forum.ORG
   
This web site isn't affiliated with, sponsored by, or approved by SAP AG. Is only a SAP users community.

Go Back   SAP-Forum.ORG > SAP Forums > News in SAP blogs

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to skip the occurrences of a breakpoint during debugging nblogs News in SAP blogs 0 12-29-2011 06:52 PM
Debugging the pop up screens in SAP nblogs News in SAP blogs 0 12-29-2011 06:52 PM
How to skip the occurrences of a breakpoint during debugging nblogs News in SAP blogs 0 12-29-2011 06:41 PM
Question about the debugger (watchpoint and break point) Pepa SAP ABAP 2 11-11-2011 09:23 AM
Create OS commands Gurla SAP BW/BI 1 05-26-2010 08:17 PM

Aprenda SAP!
Reply
 
Thread Tools Display Modes
  #1  
Old 01-29-2012, 02:54 PM
nblogs nblogs is offline
Member
 
Join Date: Dec 2011
Posts: 88
Default How to create Watchpoint during Debugging

Watch points are one of the best features available during Abap debugging.Watchpoints are used when you would like to monitor the change in a certain variable/variables and if needed on specific conditions.It comes handy when you are processing a larger program or a very large internal table loop.


Debugging manually to find about a particular change in a variable in large programs can be easily solved by watchpoint.Another way of using watchpoint is when you would like to see or start debugging from a section where a particular content is found to have a particular condition or value.The debugger would stop at the statement where the content of the variable changes.One can use watchpoints for global and local variables and as well create more than one watchpoint in a program.


Please note 2 major points to remember while creating watch point


• Creating a watchpoint for an internal table can cause performance issues and lead to incease in memory consumption.This is because when you create a watchpoint, actually a clone of the data object is also created .Multiple watchpoints also could cause performance issues if any or all the objects are having large entries.
• Create watchpoint after the data declarations section.Otherwise the variables might not be recognized and thus do not allow in creation of watchpoints.


How to create a watchpoint.

Create the watchpoint in the debugging mode as shown below.
As an example , we are checking for the value of variable result and as soon as you hit “F8”,it stops where the first change of content in the variable “result” is found.







Creating watchpoints is easy .It certainly helps in saving time and effort during debugging .




More...
Reply With Quote
Sponsors
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 10:10 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Forum Design By inferno