02-23-2022 2:30 PM
Hallo all,
I have this, kind of, annoying issue with Debugger in Eclipse: If there is a dynamic method call or select into more variables and you double click it, you wan't get it to list of displayed variables, only error message is shown, that it is not resolvable as variable, because it wrongly interprets parenthesis as a part of variable name, see screenshot.
Is there a way to fix this? Am I doing something wrong?
Thank you in advance 🙂
O.
03-08-2022 8:46 AM
Thanks for reporting this. It seems rather clear that this is an ADT bug. It is also reproducible for me, we will check it.
02-23-2022 3:21 PM
I think it would be a good idea to paste the code so that people can try on their own Eclipse version...
02-24-2022 10:09 AM
That is a good Idea! (Just BTW, the Problem with selects persists from older Versions of ADT, I even reported it already some years back...)
Here the code:
report z_os_test_eclipse.
data:
class_name type string,
method_name type string,
matnr type matnr,
maktx type maktx.
class_name = 'CL_DEMO_OUTPUT'.
method_name = 'DISPLAY_TEXT'.
call method (class_name)=>(method_name)
exporting text = 'Hello World!'.
select matnr maktx into (matnr, maktx)
from makt
up to 1 rows.
endselect.
02-24-2022 11:45 AM
Eclipse 2012-12, ADT 3.24.1, older backend (SAP_ABA 740), same thing.
03-08-2022 8:46 AM
Thanks for reporting this. It seems rather clear that this is an ADT bug. It is also reproducible for me, we will check it.
06-03-2022 8:10 AM
Hi,
I just wanted to check in if there is any progress in this issue?
I see, that in 3.26.2 the problem still persists...
Thank you and have a nice day!
O.
06-03-2022 8:18 AM
Yes correct, it is not solved yet.
Edit: Planned to be fixed with the next ADT release. Next ADT release is planned for May 2023
03-17-2023 12:33 PM
Dear Ondrej,
it is planned to deliver the solution with the next ADT release. The next ADT release is planned for May 2023.
We reviewed the double click behavior of the ADT ABAP debugger in general and found that it is unnecessarily complex. Therefore we reworked and simplified this. Besides a few bugfixes (including your case) the main difference is that in future the selection will be less greedy.
For example lets say you have in your code the variable construct string_var+offset_var(length_var)
Previously it did not matter at which position you double clicked, the debugger always tried to be greedy and to select the full variable construct string_var+offset_var(length_var)
In future you will instead get exactly what you clicked on.
- Double click somewhere into string_var selects only string_var
- Double click somewhere into offset_var selects only offset_var
- Double click somewhere into length_var selects only length_var
If a user actually needs the value of the full construct string_var+offset_var(length_var) or of a subconstruct like string_var+offset_var then he has to use copy/paste from the editor into the variables view.
This will also apply to the mouse hover over variables, not only for the double click selection.
We think this new behavior will be more intuitive and simple. Additionally it will be less error-prone and much closer to the behavior of the SAP GUI ABAP debugger.
Best regards,
Armin
03-20-2023 8:59 AM
Hi Armin,
this is good news, looking forward to it! 🙂
Have a nice day!
O.