- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Re: Debugging Scala compiler
Fri, 2009-03-06, 13:55
BTW, I've tried to debug Scala compiler from scala.tools.nsc.Main entry
point. It workd even without any sources attached to jar.
What plugin version do you use? Could you also describe your project settings?
With best regards,
Ilya Sergey
2009/3/6 Michael Shtelma <mshtelma@gmail.com>
What plugin version do you use? Could you also describe your project settings?
With best regards,
Ilya Sergey
2009/3/6 Michael Shtelma <mshtelma@gmail.com>
Sorry, I have not understood your work around...
Let me describe the problem in more detail... I have got Idea project with the whole Scala SVN tree. So the Scala compiler sources are in the src folder. The project has a also attached scala library which points to Scala distribution with the compiler jars. The librarz is needed for the building the compiler in the IDE. During the run Idea uses classes from the library instead classes compiled to some BIN folder using the sources in src folder.
"jars with Scala compiler sources to appropriate jars with classfiles. " - This is the default settings in the Scala library in the IntelliJ Idea... but in this case you cannot edit the sources... and I am not sure about the breakpoints.. Have you tried using them?
But anyway thanks for the suggestion, I will try to do so, if I am be able to use breakpoints and expression evaluator, it will be also not bad :))))
Sincerely,
Michael Shtelma
On Fri, Mar 6, 2009 at 1:15 PM, Ilya Sergey <ilya.sergey@jetbrains.com> wrote:Michael,
On possible workaroud for this would be to attach jars with Scala compiler sources to appropriate jars with classfiles. It worked fine for me.
Kind regards,
Ilya Sergey
2009/3/6 Michael Shtelma <mshtelma@gmail.com>Hello,
I have tried to debug the Scala compiler in IntelliJ Idea and got the following problem: in order to compile the compiler Idea needs compiler jars, but after that during the run, it sees no actual compiler sources from project (It sees no breakpoints in them), but the compiled classes from the compiler jar.
What IDE are you using for debugging Scala compiler?
Thank you in advance.
Sincerely,
Michael Shtelma
!DSPAM:52,49b116a77711995110349!