How do I set my source path for STS/Eclipse (using Groovy grails) and make it stick?

678 views Asked by At

When I debug a Groovy/Grails program in STS, the first time in a session that it hits a breakpoint it asks me where the source code is.

enter image description here

When I click on that dialog, I need to add my "Project" and then it will work until I exit STS and restart.

enter image description here

(But for DEBUGGING only! Lines of code mentioned in the console, whether or not they're displayed as links, will NEVER display the source when clicked on.)

1) How do I make it remember it forever? I looked through all the properties/settings I could find.

And

2) How can I click on an line of code that's mentioned in the console window (say an Exception) and have it automatically go to that line? (Micsosoft Visual Studio will do it...and it's never had to ask me where my source code is. In my 15 years of using it....)

Not everything gets hyperlinked, and even when it does, it will never find the source code, even though I can navigate to it in the Project or Package explorers:

enter image description here

1

There are 1 answers

1
Andrew Eisenberg On

I can answer the second part of the question here. If you see a reference to a stack frame in the console window and it is not there is no hyperlink (often the hyperlink exists, but in certain situations it will not be), then you should select and copy the stack trace and paste it into a Java stack trace console:

Java Stack Trace Console