This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Debugging compiler plug-ins

3 replies
Mohamed Bana 2
Joined: 2009-10-21,
User offline. Last seen 42 years 45 weeks ago.
Hi Folks,

is it possible to debug a compiler plug-in with Eclipse, if yes, how exactly is it done?

pfurla gave me instructions on IRC, but they didn't seem to work.
 
—Mohamed
Kevin Wright
Joined: 2009-06-09,
User offline. Last seen 49 weeks 3 days ago.
Re: Debugging compiler plug-ins
There's a couple of tricks possible, but it depends on how you're working.
Is it for 2.7 or 2.8?If 2.8, how closely do you follow trunk?Do you need the ability to set breakpoints in pre-existing compiler code?

Ability to set breakpoints in pre-e
2009/12/23 Mohamed Bana <mohamed@bana.org.uk>
Hi Folks,

is it possible to debug a compiler plug-in with Eclipse, if yes, how exactly is it done?

pfurla gave me instructions on IRC, but they didn't seem to work.
 
—Mohamed



--
Kevin Wright

mail/google talk: kev.lee.wright@googlemail.com
wave: kev.lee.wright@googlewave.com
skype: kev.lee.wright
twitter: @thecoda

Mohamed Bana 2
Joined: 2009-10-21,
User offline. Last seen 42 years 45 weeks ago.
Re: Debugging compiler plug-ins
Kevin,

On 23/12/09 22:00, Kevin Wright wrote:
a4f6b02a0912231400l3b8ac7d8jc1c2f90cfccb2cee [at] mail [dot] gmail [dot] com" type="cite"> There's a couple of tricks possible, but it depends on how you're working.
Is it for 2.7 or 2.8?
2.8.
a4f6b02a0912231400l3b8ac7d8jc1c2f90cfccb2cee [at] mail [dot] gmail [dot] com" type="cite"> If 2.8, how closely do you follow trunk?
recent;

./scala.library_2.8.0.r20024-b20091207020224.jar
./scala.library_2.8.0.r20246-b20091219020404.jar
./scala.tools.nsc_2.8.0.r20246-b20091219020404.jar
./scala.tools.nsc_2.8.0.r20024-b20091207020224.jar
a4f6b02a0912231400l3b8ac7d8jc1c2f90cfccb2cee [at] mail [dot] gmail [dot] com" type="cite"> Do you need the ability to set breakpoints in pre-existing compiler code?
in sourcode in my Eclipse workspace.  will this be possible given that the plug-in has to ship as a Jar?
a4f6b02a0912231400l3b8ac7d8jc1c2f90cfccb2cee [at] mail [dot] gmail [dot] com" type="cite">
Ability to set breakpoints in pre-e
2009/12/23 Mohamed Bana <mohamed [at] bana [dot] org [dot] uk" rel="nofollow">mohamed@bana.org.uk>
Hi Folks,

is it possible to debug a compiler plug-in with Eclipse, if yes, how exactly is it done?

pfurla gave me instructions on IRC, but they didn't seem to work.
 
—Mohamed



Miguel Garcia
Joined: 2009-06-10,
User offline. Last seen 42 years 45 weeks ago.
Re: Debugging compiler plug-ins

Mohamed,

The latest how-to I remember (from Jan 2009) is:
http://comments.gmane.org/gmane.comp.lang.scala.tools/2113
Perhaps there's a more recent how-to.

Miguel
http://www.sts.tu-harburg.de/people/mi.garcia

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland