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

Execute a method and check the results while debugging

former_member210955
Active Participant
1,588

Hi All,

I am trying to debug an ABAP class.

This ABAP Class internally invokes CL_HTTP_CLIENT for http communication to an external server.

While debugging i want to check what are the cookies sent in the HTTP Request.

I checked that internally CL_HTTP_CLIENT references CL_HTTP_ENTITY which has GET_COOKIES method.

Now during program execution i did not find any attributes in CL_HTTP_CLIENT which can tell me the values of cookies or HTTP headers. So, i feel one way to find out the cookies value will be executing GET_COOKIES on the reference of CL_HTTP_ENTITY object i have during debugging.

In java this is possible to execute the methods on the references during runtime using display or evaluate expressions features in Eclipse debugger. Is something similar available in ABAP Workbench?

Or can you please let me know how else can i view the HTTP cookies being sent except using HTTP trace ?

Best Regards,

Saurav

2 REPLIES 2
Read only

Sandra_Rossi
Active Contributor
1,025

Just a few words to confirm what you think : the methods of these classes run C programs in the kernel, there's no way to get the cached values behind these methods other than modifying the ABAP programs to call these methods - You can't execute these methods via the debugger - The HTTP trace is the only way I know to get the contents of HTTP requests and responses.

Read only

former_member210955
Active Participant
0 Likes
1,025

Thanks Sandra...that makes sense.