apache / apache/netbeans

Can't set Groovy breakpoint in forEach

Open
#4,675 0 comments 0 reactions 0 assignees View on GitHub
debugger Groovy kind:bug needs:triage
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 15

### What happened

When debugging Groovy code, in general, I can set breakpoints. However, I cannot set a breakpoint inside a forEach block. See the attached image. I am running Groovy 4.0.5
![Screenshot at 2022-09-22 09-10-37](https://user-images.githubusercontent.com/6467584/191771461-fca76a82-b537-47e2-afb7-6f22067a7a69.png)

### How to reproduce

_No response_

### Did this work correctly in an earlier version?

No / Don't know

### Operating System

Fedora Linux

### JDK

17

### Apache NetBeans packaging

Apache NetBeans binary zip

### Anything else

_No response_

### Are you willing to submit a pull request?

No

### Code of Conduct

Yes

Contributor guide

Open the contributing guide

Research direction

No source files, tests, or entry points are named. Start by reproducing the breakpoint behavior in Apache NetBeans 15 with Groovy 4.0.5 on JDK 17, using a forEach block on Fedora Linux. Done means a breakpoint can be set and reached inside the block.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.