Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Linux Tools Project » How to build Eclipse in Eclipse(Compile Eclipse with Eclipse source changes)
How to build Eclipse in Eclipse [message #838163] Fri, 06 April 2012 12:59 Go to next message
Jongwook Kim is currently offline Jongwook Kim
Messages: 7
Registered: March 2012
Junior Member
I'm finding guides to build and debug Eclipse within Eclipse.
(This is my first posting here. I really want to get answers from you.)

[Updated on: Fri, 06 April 2012 13:00]

Report message to a moderator

Re: How to build Eclipse in Eclipse [message #843941 is a reply to message #838163] Fri, 13 April 2012 10:23 Go to previous messageGo to next message
Roland Grunberg is currently offline Roland Grunberg
Messages: 25
Registered: December 2009
Junior Member
Jongwook Kim wrote on Fri, 06 April 2012 12:59
I'm finding guides to build and debug Eclipse within Eclipse.
(This is my first posting here. I really want to get answers from you.)


There is a guide at wiki.eclipse.org/Linux_Tools_Project/Eclipse_Build on building Eclipse from source on Linux.

As for debugging an instance of Eclipse, I've had to do this for particular components (eg. org.eclipse.equinox.simpleconfigurator). Just make sure you have the sources available for the components you wish to debug with breakpoints set where needed and launch a child Eclipse session (Make sure to do this from the debug configuration).

You could also use remote debugging. There's a pretty good resource on its usage here : aectann.wikidot.com/java-remote-debug . The only difference is that when you launch the instance of eclipse you wish to debug, you would prefix the remote debug options with the "-vmargs" flag to ensure they get passed to the jvm.

Hope this helps.
Re: How to build Eclipse in Eclipse [message #844013 is a reply to message #843941] Fri, 13 April 2012 11:47 Go to previous messageGo to next message
Jongwook Kim is currently offline Jongwook Kim
Messages: 7
Registered: March 2012
Junior Member
Thank you Roland, I still have some questions:

I don't guess Eclipse developers build Eclipse on Linux as described in wiki.eclipse.org/Linux_Tools_Project/Eclipse_Build. Am I wrong?

Could you elaborate debugging (with breakpoints)? Is it the way Eclipse developers do actually?

[Updated on: Fri, 13 April 2012 20:21]

Report message to a moderator

Re: How to build Eclipse in Eclipse [message #847938 is a reply to message #844013] Tue, 17 April 2012 16:07 Go to previous messageGo to next message
Roland Grunberg is currently offline Roland Grunberg
Messages: 25
Registered: December 2009
Junior Member
Jongwook Kim wrote on Fri, 13 April 2012 11:47
Thank you Roland, I still have some questions:

I don't guess Eclipse developers build Eclipse on Linux as described in wiki.eclipse.org/Linux_Tools_Project/Eclipse_Build. Am I wrong?

Could you elaborate debugging (with breakpoints)? Is it the way Eclipse developers do actually?


If you're talking about the Eclipse instances found here : www.eclipse.org/downloads/ , then no they aren't built exactly the same way. The "eclipse-build" project is an attempt to build Eclipse from sources on Linux distros. One of the reasons for this is that some distributions do not allow things to be pre-built and so everything must be built from source.

Another reason is to provide the Eclipse package as a part of that distribution's package management system.

I don't know exactly if there's only one way Eclipse developers debug things. From my personal experience, when debugging Eclipse itself, it's much easier to do it remotely because you're not dependent on using the same instance. For example, if you're attempting to debug a broken Eclipse installation (let's say it won't even start), you can't launch the first instance, let alone a child. You could however start that broken instance in debug mode (at some point early in the startup process), and debug from a working Eclipse instance.

Using breakpoints seems pretty standard to me. Often all that's required is to inspect certain values at a point in the code (in some cases maybe even doing a hot-code insertion)

There's a lot of good documentation out there on the above topics.
Re: How to build Eclipse in Eclipse [message #847980 is a reply to message #847938] Tue, 17 April 2012 17:06 Go to previous messageGo to next message
Jongwook Kim is currently offline Jongwook Kim
Messages: 7
Registered: March 2012
Junior Member
What about compile-time (syntax) errors? Eclipse developers will not build Eclipse to fix a typo every time. I believe they compile Eclipse (sources) using Eclipse tool (instance), namely "build Eclipse in Eclipse".

Thanks for comments!
Re: How to build Eclipse in Eclipse [message #849012 is a reply to message #847980] Wed, 18 April 2012 16:04 Go to previous messageGo to next message
Roland Grunberg is currently offline Roland Grunberg
Messages: 25
Registered: December 2009
Junior Member
Jongwook Kim wrote on Tue, 17 April 2012 17:06
What about compile-time (syntax) errors? Eclipse developers will not build Eclipse to fix a typo every time. I believe they compile Eclipse (sources) using Eclipse tool (instance), namely "build Eclipse in Eclipse".

Thanks for comments!


My view of Eclipse is as more of a set of plugins, so I think that when an Eclipse developer is coding/debugging for the platform, they're often only looking at one set of components (p2,help system,jdt,etc.) and not the platform as a whole. So yes, they're using Eclipse to build/debug an Eclipse component.
Re: How to build Eclipse in Eclipse [message #849022 is a reply to message #849012] Wed, 18 April 2012 16:15 Go to previous messageGo to next message
Jongwook Kim is currently offline Jongwook Kim
Messages: 7
Registered: March 2012
Junior Member
That's exactly what I'm finding. Do you know how to build/debug Eclipse using Eclipse?

[Updated on: Wed, 18 April 2012 16:18]

Report message to a moderator

Re: How to build Eclipse in Eclipse [message #856499 is a reply to message #849022] Wed, 25 April 2012 14:23 Go to previous message
Roland Grunberg is currently offline Roland Grunberg
Messages: 25
Registered: December 2009
Junior Member
Jongwook Kim wrote on Wed, 18 April 2012 16:15
That's exactly what I'm finding. Do you know how to build/debug Eclipse using Eclipse?


There's some good documentation here on using remote debugging in Eclipse :

www.ibm.com/developerworks/opensource/library/os-eclipse-javadebug/index.html

The only difference is that the application you'd be launching is Eclipse, and you'd need to add the "-vmargs" flag before specifiying the debug flags.

I'm planning on writing up a post (I'll post here) of an example showing how to debug an instance of Eclipse, just to demonstrate that it really isn't all that different.
Previous Topic:LTTng 2.0
Next Topic:noob trying to set up C++ IDE
Goto Forum:
  


Current Time: Mon Jul 28 10:43:29 EDT 2014

Powered by FUDForum. Page generated in 0.05842 seconds