Hi Michael,

Using F6 is behaving weirdly at CommunicationEventServices.groovy[489].
To be clear: "the Map vs def issue" directly steps out to the caller 
(GroovyEngine.java), where the exception is thrown.
So the lines below 489 seems not executed, not even the return.

So I changed from Map to def, to check that.
Like before, the debugger does not stop at 
CommunicationEventServices.groovy[489] when disabling the breakpoint at 
GroovyEngine.java[110].
When enabling it and using F5/F6/F7 keys, the behaviour is the same than with 
Map.

So I still don't understand this point (why line between 489 and the return 
seems not executed). But that's not our real issue at this stage.
Note: I understand it's a closure where return is inside, but that still don't explain the phenomenon to me. Why the rest of the closure is bypassed, maybe a Groovy bug or, more likely, an Eclipse debugger interpretation?

Thanks for your efforts (you can neglect the last point, more for me to 
remember ;)

Jacques

Le 22/04/2023 à 20:56, michael.br...@ecomify.de a écrit :
Hi Jacques,

we are working on this also, hope to share some results next week.

Best regards,
Michael


Am 22.04.2023 um 19:43 schrieb Jacques Le Roux<jacques.le.r...@les7arts.com>:

Hi,

After the message I sent with subject "OFBiz 22.01 - Eclipse - Issues on setting up 
a debugging environment.":
https://lists.apache.org/thread/yxmdxy81ywwhldg8ml4foqls5df0hy8s
I applied Leila's advice, I tried many things at the point that I can't 
remember all. But here are the main ones.

I use last versions of Eclipse (2023-03) and Groovy plugins (5.0)
The issue I'm still fighting is not working breakpoints in Groovy files.

To test, I put a breakpoint at CommunicationEventServices.groovy[489],
and launchsendEmailDated service from Webtools

As breakpoints in Groovy are not working, I put one ahead in 
GroovyEngine.java[110].
 From then, using F5/F6/F7 keyboard keys, I can get into 
CommunicationEventServices.groovy::sendEmailDated

Before that, the issue I crossed was that I could not keep the relation, 
manually done as proposed by Eclipse, to the source .
BTW, that's what I was actually using before (JDK 17? Eclipse version?, etc. I 
don't know)
when I wanted to debug Groovy with breakpoints (already long ago).

So I added the "**/*.groovy" "Script Folder" using the  option "Configure Workspace 
Settings..." of the "Groovy Compiler" project properties.
Once that done the Groovy source relation stayed.

But still the breakpoint at CommunicationEventServices.groovy[489] does not 
stop the process. I have to get there using the F6 key.

I shared that in the hope that someone does better and can share.

TIA

Jacques

Reply via email to