my question was more in eclipse user direction: I use the buildship plugin for gradle and the most current version of eclipse.
In previous ofbiz versions I opened the "run configuration", added a gradle task and added "ofbizDebug" as task. Then I created a debug task for the debug task. Worked for years.
With the new version I would have to add "ofbiz" as task and "--debug-jvm" as argument. The only result I get is: Unrecognized option: --debug-jvm
As I asume I am not the only one using Eclipse so I was hoping someone solved that already :)
Gesendet: Freitag, 4. September 2020 12:45
The documentation seems outdated as it still references an old custom ofbiz debug task - "ofbizDebug". It was removed from build.gradle since gradle supported the command line argument "--debug-jvm" that did exactly what "ofbizDebug" did.
> Thanks Girish,
>
> That's indeed how most of us do it.
>
> BTW Ingo, we have some documentation in wiki:
>
>
https://cwiki.apache.org/confluence/display/OFBIZ/Running+and+Debuggin> g+OFBiz+in+Eclipse
>
> Please let me know if it's still up to date (I think so) and useful
>
> Thanks
>
> Jacques
>
> Le 04/09/2020 à 09:37, Girish Vasmatkar a écrit :
> > Hi Ingo
> >
> > I see what you're trying to do. Apparently eclipse is not ownering
> --debug-jvm and passing it along to gradle for execution. Other
> command line
> > arguments like --stacktrace, --debug work just fine but you need to
> > set
> them in Run Configuration-> GradleTask -> Project Settings -> Advanced
> > Options -> Program Arguments.
> >
> > As I mentioned above, if you set --debug-jvm, it won't do anything.
> However you can try what gradle does under the hood when it receives
> > *--debug-jvm* command line argument. Just pass below to the JVM
> > directly
> using JVM argument -
> >
> > Under Run Configuration-> GradleTask -> Project Settings -> Advanced
> Options -> JVM Arguments
> > *-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005*
> > Not sure if you can see the image I pasted below inline instead of
> adding it as an attachment. But setting the above line as JVM argument
> and
> > configure the task as 'ofbiz' should get the job done.
> >
> > image.png
> >
> >
> >
> >
> >
> >
> > On Thu, Sep 3, 2020 at 10:41 PM Ingo Wolfmayr
> > <
[hidden email]
> <mailto:
[hidden email]>> wrote:
> >
> > Hello Girish,
> >
> > it works in command line. I want to setup a eclipse gradle task
> under "run configurations".
> >
> > Best regards,
> > Ingo
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Girish Vasmatkar <
[hidden email] <mailto:
>
[hidden email]>>
> > Gesendet: Donnerstag, 3. September 2020 16:50
> > An: ofbizuser <
[hidden email] <mailto:
[hidden email]>>
> > Betreff: Re: Eclipse debug
> >
> > Hello
> >
> > *gradlew ofbiz --debug-jvm* should work. --debug-jvm is just
> supplied as a parameter.
> >
> > Best,
> > Girish
> >
> >
> > On Thu, Sep 3, 2020 at 7:01 PM Ingo Wolfmayr <
>
[hidden email] <mailto:
[hidden email]>>
> > wrote:
> >
> > > Hello,
> > >
> > > can anybody tell me how to add a Gradle Task for debugging ofbiz in
> > > eclipse:
> > >
> > > gradlew "ofbiz" --debug-jvm
> > >
> > > Where will I have to but the "--debug-jvm"?
> > >
> > > In former ofbiz versions it used to work with adding "debugOfbiz"
> as
> > > gradle task.
> > >
> > > Thanks for any hint.
> > >
> > > Best regards,
> > > Ingo
> > >
> > >
> > >
> > >
> > >
> >
>