eclipse - Groovy debugger out of sync -
i having difficulty while attempting debug code in grails. difficult put text, have posted screencast showing problem here. in short, while debugging debugger starts jumping place place , not following program logic have in place. other similar question have found year old, had no solution, , can found here.
the best guess have far debugger displaying text have typed in, executing older version of class file has cached somewhere. therefore, tried:
- cleaning project
- manually deleting of class files target folder , target-eclipse folder
- searching entire hdd additional files similar names
- removing project workspace , re-adding it
- closing , reopening ide
- grails refresh-dependencies
- importing project new ide (i using ggts, switched intellij)
none of solutions had effect. realized issue in .groovy file, , writing pure java, deleted .groovy file, , re-created class in .java file. solved problem. unfortunately having problem again, , time in controller heavily relies on grails framework, solution not option. other being in .groovy file, similarity code breaks on if statement.
my next steps:
- verify application not executing code see using print functions monitor actual execution flow.
- comment out entire function , re-add functionality 1 line @ time see if can see breaks it.
- delete .groovy file, , re-create .groovy file.
any appreciated, , since can't find answers online continue update question learn more.
see comment on jira issue raised. have found problem groovy compiler , how calculates line numbers. not problem executing wrong class files or using broken debugger. debugger doing expected do. compiler providing erroneous line number information.
the next step, described in issue, provide simple project recreates bug. tried myself, not. so, please supply can work with. can notify groovy compiler team.
Comments
Post a Comment