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

debugging a code

0 Likes
1,463

When i try to debug a code 2 dibugger starts at once , please experts explain why it is happenig?

6 REPLIES 6
Read only

basantmhr
Participant
0 Likes
1,372

Most probably it is happening because the block of code you are trying to debug is being called two times, Can you check whether the block of code you are calling is being called two times or not, like being called by a web service at 2 quick separate instances.

Read only

Abinathsiva
Active Contributor
0 Likes
1,372

Please share the code through code button..

Read only

Sandra_Rossi
Active Contributor
1,372

Does it happen all the time for any ABAP code? If you debug this one, does it happen:

REPORT ztest.
WRITE 'debug test'.                 "<======= add breakpoint and run the program
Read only

matt
Active Contributor
1,372

If you have update debugging switched on, then when a commit happens, the update processing will be debuggable in another debug window.

Same happens if you have asynchronous RFC calls.

Read only

1,372

sandra.rossi : not every time only when i debug UI5 application which i am working

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,372

It may be due to the fact that there are asynchronous calls from the UI5 application, and maybe because of the first call being paused in the debugger, the app tries again to do the call (or something like that). I also sometimes have more than 2 debug sessions started. But I don't know the internal logic of UI5, how it exactly interacts with the ABAP server (one part is for downloading the app files stored on the backend, like for any other SAP Web app, and one part is for OData requests).