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

How to watch / debug a context attribute in WDA while runtime?

Former Member
0 Likes
1,790

Hi folks,

I have a WDA with an context controller attribute. There is no supply function for it, I have the strong sucpicion its changed while runtime. I wanna watch at it resp. monitor it in debugger for changes, it means I would like to identify where its used within the source.

How can I do it in ABAP? Thanks,

br

1 ACCEPTED SOLUTION
Read only

amy_king
Active Contributor
1,584

Web Dynpro has a special debug tool. Set a breakpoint in your code and execute the application to trigger the breakpoint. Once in debug, click "New Tool" to add a tool then select "Web Dynpro".

Cheers,
Amy

3 REPLIES 3
Read only

amy_king
Active Contributor
1,585

Web Dynpro has a special debug tool. Set a breakpoint in your code and execute the application to trigger the breakpoint. Once in debug, click "New Tool" to add a tool then select "Web Dynpro".

Cheers,
Amy

Read only

Former Member
0 Likes
1,584

Thank you for your help Amy. An ABAP developing colleague, I have asked for advice on this issue, had the same idea and we ran together trough the WDA debug tool to test if we can observe corresponding context attribute for getter / setter access somehow, but we werent successful.

We were able to find some references to the content of the attribute Im looking for, but its content is not what Im interested in. My task is rather to observe its value for any changes or read access and be able to identify where it comes from, means which dictionary objects are triggering it. Cause of this I cant follow your suggestion to set a break point somewhere - I wouldnt even know where, actually I would like to find out code segments which are affecting a context attribute first. I hope my explanations are clear more or less.

Probably we have missed something, if have any further clues those would be very welcome, thanks,

br

Read only

Former Member
0 Likes
1,584

The answer to my question was this for me in fact:

https://blogs.sap.com/2013/07/17/steps-to-do-a-global-search-in-abap-webdynpro/

Its a bit dirty, since the search is showing you also sap generated classes, but works if you are looking for potential read or write operations. SAP ways are weird...

br