Application Development 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: 

debug nested calls

Former Member
0 Kudos

Hi,

we got very complex routines wich call subroutines, other classes and so on.

At some unknown point in any unknown method a field/attribute gets changed.

I do only know the fieldname in the mainroutine; so I can set a watchpoint. But when the runtime reaches the watchpoint the fieldvalue was already set in any unknown subroutine.  How can I find out which subroutine/method/function module is really chaning the fieldvalue?

Example:

  1. Mainclass has attribut myClassAttibut  
  2. Mainclass calls Method an passes myClassAttibut; local Name in the method is asuming lv_myClassAttibut
  3. Now the method creates a subclass an passes lv_myClassAttibut. lv_myClassAttibut gets a new name in the subclass; maybe :  lv_myUnknownClassAttibut
  4. and so on and so on.

many regards and a happy new year

mario

4 REPLIES 4

ipravir
Active Contributor
0 Kudos

Hi Mario,

You have to do the debug the process but In faster way through F7 & F6 keys.

or either.

Open you initial code in system, and drill out the programs base on your variable and put the break point based that.

regards.

Praveer.


jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

Set debugging point inside the class method and create watchpoint for local attribute which is changing your main attribute.

0 Kudos

Hi,

sorry. This is really NO helpfull answer. I am looking for a smart approach.

Thanks Regards

Mario

Former Member
0 Kudos

Hi all,

i did a little research. I found the feature called : ABAP debugger scripts.

I don't know if this really can solve my problem.

If I know, that the wrong value in myClassAttibut  is e.g. <wrongValue>

Is it possible in the debugger script to watch every variable/attribute and stops if any of them gat the value <wrongValue> ?

With other words: a generic watchpoint not on the variable/attribute but on a value!

This would be very helpfull.

Many regards

Mario