Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

debugging technics

Former Member
0 Likes
1,426

Hi Friends,

my program contains more than 3000 lines code is there..

1) as per the Requirement .. can i start debugging from the starting

point of program or at that perticular point.???? which is better.

b.coz of time consuming...any easy technics.. guide me..

Regards,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,391

Hi Vijay,

Use breakpoints wherever u want.

Debugging such a long code is inconvinient.

So its better to use breakpoints on some particular lines of code

Reward if useful

Thanks

Shreya

14 REPLIES 14
Read only

Former Member
0 Likes
1,391

hi,

put <b>break-points</b> at the places u think which are more reactive in ur program.

That will be best method.

Regards

Reshma

Read only

Former Member
0 Likes
1,391

Hi,

debugging from the specific point is preferred if u no the approximate error point.

Read only

Former Member
0 Likes
1,391

it is always a good idea to put breakpoints at multiple places in your program and then see while debugging which part of the program is problematic or taking more time ...and so on.

breakpoints are only meant to stop at the particular line during execution. you need to use them judiciously to your best advantage.

regards,

Priyank

Read only

Former Member
0 Likes
1,392

Hi Vijay,

Use breakpoints wherever u want.

Debugging such a long code is inconvinient.

So its better to use breakpoints on some particular lines of code

Reward if useful

Thanks

Shreya

Read only

0 Likes
1,391

Hi Shreya,

Purpose of watch point in a program???

In which situation we are using Wath point???

while we dubugging a program when we use watch point???

Example plzzzzzz.

regards,

Read only

0 Likes
1,391

Hi Vijay,

Watchpoints r used when there r many number of records.

U can set a watchpoint like <b>when X = '20000</b> and excecute the program.

The 20000th record gets displayed.

Reward if useful

Shreya

Read only

0 Likes
1,391

Hi vijay

Breakpoints are where you want to stop in the code on a specific statement. Watchpoints are used to stop the processing when a variable reaches a certain condition, for example, you can set a watch point on a internal table field to have a certain value, then the debugger will stop when it hits that record in the internal table.

Check this link -

http://help.sap.com/saphelp_nw2004s/helpdata/en/c6/617cbee68c11d2b2ab080009b43351/frameset.htm

at max we can use

Watch points : 10 &

Break points : 30

rewards if helpfull

regards

Pavan

Read only

0 Likes
1,391

Hi Shreya,

why we are set the watch point at Perticular Point in Program??

mean perticular field??? which situation we will set???

can u explain clearly ..

regards,

Read only

0 Likes
1,391

Hi Pavan,

why we are set the watch point at Perticular Point in Program??

mean perticular field??? which situation we will set???

can u explain clearly ..

regards,

Read only

Former Member
0 Likes
1,391

hi vijay,

while looking at the error u got in which context the error may come hop eu can guess it with common knowledge ... so its better to have debugging at that articular code rather tahn having the whole program..

use break point , watch point, or u want to have whole program to be debugged just switch on debugging or /h

regards

Read only

Former Member
0 Likes
1,391

try to divide the whole prg into smaller blocks so that make su debugg more eay hopeu know modularization techniques..

Read only

Former Member
0 Likes
1,391

hi,

set the breaks point where ever you want to see the data population.

thanks and regards

shyam

Read only

former_member196299
Active Contributor
0 Likes
1,391

HI Vijay ,

You can start dubugging of a program at the begining itself if necessary . or else put breakpoints and watch points in places where you suspect the bug to be .. and start debuging the program you will only reach the points where you have marked breakpoints and watchpoints ..

Thanks

Ranjita

Read only

Former Member
0 Likes
1,391

Hi Vijay

Use break points where u want to debug or if debugging is not allowed at that particular place then type /h on the task bar menu so that the debugging will be switched on wherever you are in program

Rewards If usefull

Regards

Pavan