This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Kawa debugging with Eclipse
- From: Andrea Bernardini <andrebask at gmail dot com>
- To: kawa at sourceware dot org
- Date: Thu, 24 Apr 2014 18:47:28 +0200
- Subject: Re: Kawa debugging with Eclipse
- Authentication-results: sourceware.org; auth=none
- References: <20140423154800 dot 5e31c5ff at vaio> <CAPMhJv3CkoqF9Zc4io3WE5tWEHhfjo55du9SiaYhQAP8x=2mTQ at mail dot gmail dot com> <CAOTvmomYQ+z=_OO70Fp7zJkKWgXPCU4+m242N4drbKyFxFKVXQ at mail dot gmail dot com> <CAOTvmon6F4udJge+=roZzcbnXSOrf_i6aJ-=RYHGM3VsE5ecuA at mail dot gmail dot com>
On Wed, 23 Apr 2014 14:19:54 -0400
Matthieu Vachon <matthieu.o.vachon@gmail.com> wrote:
> As for the debugging parts, here two tricks you can use to debug a
> Java program without having the project built with Eclipse directly.
>
> 1. Remote debugging
> ...
> 2. Compile using ant
> ...
>
> Regards,
> Matt
Thanks for this little guide, It is very useful. Especially the
"Compile using ant" part, it is very easy and allows to use the debugger
also with the internal kawa code.
Moreover I found a way to edit and automatically build kawa code from
eclipse on save:
You need to download the kawa source tree and build it the first time
with configure + make, then:
1. Create a new project, select Java Project from an existing Ant Build
file, than select build.xml in the code folder. This import the code in
Eclipse without coping it in the workspace, so you can edit files
directly and the build.
2. Create an External tools configuration. Run -> External tools ->
External tools configuration... As command, use /usr/bin/make, as
working directory the root of the kawa source tree.
3. Create a builder. Project -> Properties.... then select the
Builders tab, select import..., then select configuration created at
step 2. Select the newly added builder end click edit... In Build
Options tab, check the During auto builds box.
At this point, when you edit a file in kawa and save, eclipse calls
make, and kawa.jar is built.
So you can configure a new project with the step 2 in Matthieu's guide
(Compile using ant) and put that kawa.jar in the classpath.
Thank you all for the tips.
--
Andrea Bernardini
Engineering Of Computing Systems student
Politecnico di Milano, Italy