It's hard to say what is wrong, my only suggestion is to make sure that
the package declaration in your sources matches their physical location,
i.e., if a package's source is `foo.bar.buz`, then the source should be
located in the source folder, under `foo/bar/buz`.
Also, check that the level of generated debugging is set to `vars` (to do
so, go under Eclipse > Preferences > Scala > Compiler).
-- Mirco
Could you upload your project somewhere so that we can
For the benefit of others who stumble on this months-old thread. One cause of "source not found" is if a source file has nested packages. Debugger will break in code of outermost package, but won't step into or break in nested ones (as of Scala compiler 2.9.3).
Guys,
Any ideas if this is still "unsolvable" issue? I have a project where I follow a rule that package directories match declared packages inside files, but during debugging I see no source code.
I tried to "attach" source manually however source code appears for a split second in debug view and then disappears again... (why?!)
I tried one more thing - debugged one of my unit tests, the interesting thing is that initially source code and current debug line were showed correctly, however after logger call was hit source code lookup stopped working again. I use grizzled slf4j logger. After this code line debugger breaks: logger.debug(s"Comment: $comment")I noticed that "debug" method in the Logger implementation has annotation @inline, maybe this one has any impact on debugger?
I do not know any other way to debug with current issues of Scala IDE source code lookup than put a log() call on every line in a source code - which is a debugging nightmare.
Basically Scala IDE debugger is half-useless to me... I wonder are there really not many people who use debugger and hit this issue?
On Monday, November 19, 2012 at 1:53:52 PM UTC+2, Iulian Dragos wrote:
On Fri, Nov 16, 2012 at 8:53 PM, Kabob <kohl...@bdumail.com> wrote:
For the benefit of others who stumble on this months-old thread. One cause of "source not found" is if a source file has nested packages. Debugger will break in code of outermost package, but won't step into or break in nested ones (as of Scala compiler 2.9.3).
That's a very good point, thanks for following up. In general, don't expect anything to work very well when the directory structure does not follow your package declarations.
iulian
--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais
--
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/50b25684-c211-4b8d-832a-1c8957433bc0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On 01/13/2016 04:30 PM, Lorentz Green wrote:
Guys,
Any ideas if this is still "unsolvable" issue? I have a project where I follow a rule that package directories match declared packages inside files, but during debugging I see no source code.
I tried to "attach" source manually however source code appears for a split second in debug view and then disappears again... (why?!)
I tried one more thing - debugged one of my unit tests, the interesting thing is that initially source code and current debug line were showed correctly, however after logger call was hit source code lookup stopped working again. I use grizzled slf4j logger. After this code line debugger breaks: logger.debug(s"Comment: $comment")I noticed that "debug" method in the Logger implementation has annotation @inline, maybe this one has any impact on debugger?
--I don't know how many people hit that issue. I had this problem once and fixed it but can't really remember in which case I got it or how I fixed it. I think it was because an error occurred in the UI thread, which killed the editor in the end. Do you see any errors in the error log view? Also if you check the scala-ide log, is there anything suspicious logged?
I do not know any other way to debug with current issues of Scala IDE source code lookup than put a log() call on every line in a source code - which is a debugging nightmare.
Basically Scala IDE debugger is half-useless to me... I wonder are there really not many people who use debugger and hit this issue?
--
On Monday, November 19, 2012 at 1:53:52 PM UTC+2, Iulian Dragos wrote:
On Fri, Nov 16, 2012 at 8:53 PM, Kabob <kohl...@bdumail.com> wrote:
For the benefit of others who stumble on this months-old thread. One cause of "source not found" is if a source file has nested packages. Debugger will break in code of outermost package, but won't step into or break in nested ones (as of Scala compiler 2.9.3).
That's a very good point, thanks for following up. In general, don't expect anything to work very well when the directory structure does not follow your package declarations.
iulian
--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/50b25684-c211-4b8d-832a-1c8957433bc0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/56967943.2060905%40antoras.de.
Hi,
I do see some errors in the logs, however they seem to be related to start/stop debugger, not sure if they impact debugger stepping... (attached - take a look).
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/86cba069-6df2-4881-9230-f83ad8c68c16%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/56976D12.3040708%40antoras.de.