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

debug a class

Former Member
2,170

Hi,

what is the best way to debug a class? I dont know exactly which method will be called.

Where can I set the breakpoint to be sure it will be reached in any case.

Regards

sas

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,660

pls read my question more clearly.

I dont know which method is being called. how can I set a breakpoint in the method.

I can not set a breakpoint in each method. It not a developer like.

There must be way to debug the class in any case .

10 REPLIES 10
Read only

Former Member
0 Likes
1,660

go to SE24....give the name of the class....double click on method name.....then put a break-point where ever you want

Read only

Former Member
0 Likes
1,660

Hi,

If you are creating instance for the class then probably you can give break-point in constructor...

and then from then on you can be in debug mode....

if its not possible ..

then give break-points in every method you will get to know what is happening and when...

Regards,

Siddarth

Read only

Former Member
1,660

Hi,

Keep a break-point on the class when it enters the debugging mode now go to the

SETTINGS in the menu-bar

and then say

SYSTEM DEBUGGING ON/OFF.

In this way you can debug a class as the system programs cannot be debugged with out this

this will definitely work.

regards

sarves

Read only

former_member203501
Active Contributor
0 Likes
1,660

hi please find this ...

Read only

Former Member
0 Likes
1,661

pls read my question more clearly.

I dont know which method is being called. how can I set a breakpoint in the method.

I can not set a breakpoint in each method. It not a developer like.

There must be way to debug the class in any case .

Read only

0 Likes
1,660

Hi,

I think what Sarves answered will work...

Regards,

Siddarth

Read only

0 Likes
1,660

why SYSTEM DEBUGGING ??

I want debug a class

Read only

0 Likes
1,660

Hi,

Because if you want to debug the class it will not allow you to do it directly, it jumps to the next abap keyword. so if you want to see what is going in the class you need to start the system debugging.

Can you tell what is the class you want to debug.

regards

sarves

Edited by: Sarves Sombhatla on Mar 14, 2009 11:59 AM

Read only

0 Likes
1,660

CL_BBP_BS_ADAPTER_RQ_CRT_470

I dont if whether you have that class in your system cause it in the SAP SRM System

By the way, what does it matter. A class is a class

Read only

0 Likes
1,660

Just try this way,

GOTO SYSTEM

in the menubar and

UTILITIES

you have 3 options

DEBUG ABAP 
DEBUG SYSTEM 
DEBUG SCREEN

this is available at any point of time.

activate all the three debugging and try executing the class this will take you to debugging mode

regards

sarves