apache / apache/grails-intellij-plugin

Grails. Breakpoints in configuration code not working

Open
#322 0 comments 0 reactions 0 assignees View on GitHub
bug imported-from-youtrack
Dominant language
Java
Stars
17
Forks
4
Avg merge
5d 15h
Merged PRs (30d)
4

Description

I'm trying to debug a problem with some configuration code in Grails. I can set a breakpoint in "grails-app/conf/application.groovy", but when I run the code in the debugger, it doesn't stop at the breakpoint, even though it executes the surrounding code, as witnessed by output from println statements...

To be clear, there are two files called “application.groovy” - one is the Application class that contains “main” and the other is a Groovy version of the configuration file:

init/package/Application.groovy
conf/application.groovy

To reproduce my problem, create a Grails application, add a line that says
```
println “Hello world”
```
to the file “conf/application.groovy”, set a breakpoint on that line, and Debug the application.

---

*Imported from [IDEA-181084](https://youtrack.jetbrains.com/issue/IDEA-181084) · Type: Bug · Votes: 1*
*Comments, attachments, dates and reporter are not part of the export — follow the link above for the full history.*

Contributor guide

No contributing guide indexed for this repository

Research direction

Create a Grails application, add println “Hello world” to conf/application.groovy, set a breakpoint there, and debug the application. Compare the behavior with init/package/Application.groovy and trace how the debugger handles the configuration file; done means execution stops at the breakpoint in conf/application.groovy.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.