‎2009 Mar 14 10:23 AM
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
‎2009 Mar 14 10:35 AM
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 .
‎2009 Mar 14 10:25 AM
go to SE24....give the name of the class....double click on method name.....then put a break-point where ever you want
‎2009 Mar 14 10:26 AM
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
‎2009 Mar 14 10:32 AM
Hi,
Keep a break-point on the class when it enters the debugging mode now go to the
SETTINGS in the menu-barand 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
‎2009 Mar 14 10:34 AM
‎2009 Mar 14 10:35 AM
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 .
‎2009 Mar 14 10:42 AM
Hi,
I think what Sarves answered will work...
Regards,
Siddarth
‎2009 Mar 14 10:52 AM
‎2009 Mar 14 10:55 AM
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
‎2009 Mar 14 11:01 AM
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
‎2009 Mar 14 11:14 AM
Just try this way,
GOTO SYSTEMin the menubar and
UTILITIESyou 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