Remote Debugging : 2 copies of OFBiz? How to make code changes?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Remote Debugging : 2 copies of OFBiz? How to make code changes?

Charles So
Hello,

Nobody seems to have asked this question before, so here it goes...

First of all, I managed to get Eclipse to connect to a remote instance of OFBiz (by following the instructions in docs.ofbiz.org and used the Official debugging method.) The Debugger perspective is active, and shows that there are many OFBiz threads running.

There was no Java Project in Eclipse at the moment.

Since I need to set break points and make code changes, I am kinda stuck here.

So, I created a new Java Project, "Link Source" to the folder containing the running instance of OFBiz.

I can set break points, play with OFBiz in Safari, and Eclipse will stop the OFBiz at break points.

However, upon checking the Eclipse Workspace I found another copy of OFBiz in it!

The question is, have I done anything incorrectly here? I mean, if I make changes in Eclipse I don't think the changes are reflected in the original copy of OFBiz. Without the Java Project, there seems to be no way to set breakpoints and step thru the code...

Comments please!
Reply | Threaded
Open this post in threaded view
|

Re: Remote Debugging : 2 copies of OFBiz? How to make code changes?

Jacques Le Roux
Administrator
From: "Charles So" <[hidden email]>

>
> Hello,
>
> Nobody seems to have asked this question before, so here it goes...
>
> First of all, I managed to get Eclipse to connect to a remote instance of
> OFBiz (by following the instructions in docs.ofbiz.org and used the Official
> debugging method.) The Debugger perspective is active, and shows that there
> are many OFBiz threads running.
>
> There was no Java Project in Eclipse at the moment.
>
> Since I need to set break points and make code changes, I am kinda stuck
> here.
>
> So, I created a new Java Project, "Link Source" to the folder containing the
> running instance of OFBiz.
>
> I can set break points, play with OFBiz in Safari, and Eclipse will stop the
> OFBiz at break points.
>
> However, upon checking the Eclipse Workspace I found another copy of OFBiz
> in it!
>
> The question is, have I done anything incorrectly here? I mean, if I make
> changes in Eclipse I don't think the changes are reflected in the original
> copy of OFBiz. Without the Java Project, there seems to be no way to set
> breakpoints and step thru the code...
>
> Comments please!

If you don't want to worry you may use the second method instead.

Jacques

> --
> View this message in context:
> http://www.nabble.com/Remote-Debugging-%3A-2-copies-of-OFBiz--How-to-make-code-changes--tp16367181p16367181.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>