You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by Dileepa Jayakody <di...@gmail.com> on 2014/07/09 08:38:38 UTC
How to start Isis in debug mode
Hi Devs,
Can I please know how to start Isis server in debug mode?
I need to debug from Eclipse.
Thanks,
Dileepa
Re: How to start Isis in debug mode
Posted by Martin Grigorov <mg...@apache.org>.
Hi,
On Wed, Jul 9, 2014 at 10:08 AM, Dileepa Jayakody <dileepajayakody@gmail.com
> wrote:
> Hi Dan,
>
> Can I run the server from console in debug mode? and connect the project
> from eclipse as a Remote application?
>
> I usually run the Isis server from console : mvn antrun:run
>
Then just use mvnDebug.
It comes with Maven distro just like 'mvn' itself.
>
>
> Thanks,
> Dileepa
>
>
> On Wed, Jul 9, 2014 at 12:12 PM, Dan Haywood <dan@haywood-associates.co.uk
> >
> wrote:
>
> > Run > Debug.
> >
> > I generally use the ide/eclipse/launch/xxx.launch file with
> > --type=SERVER_PROTOTYPE to flip Isis into prototype mode too; this will
> > render any @Prototype actions and also runs Wicket in DEVELOPMENT mode.
> >
> > Dan
> >
> >
> >
> > On 9 July 2014 07:38, Dileepa Jayakody <di...@gmail.com>
> wrote:
> >
> > > Hi Devs,
> > >
> > > Can I please know how to start Isis server in debug mode?
> > >
> > > I need to debug from Eclipse.
> > >
> > > Thanks,
> > > Dileepa
> > >
> >
>
Re: How to start Isis in debug mode
Posted by Dileepa Jayakody <di...@gmail.com>.
Thanks a lot Dan and Martin.
On Wed, Jul 9, 2014 at 1:01 PM, Dan Haywood <da...@haywood-associates.co.uk>
wrote:
> On 9 July 2014 08:08, Dileepa Jayakody <di...@gmail.com> wrote:
>
> > Hi Dan,
> >
> > Can I run the server from console in debug mode? and connect the project
> > from eclipse as a Remote application?
> >
>
> Yup.
>
>
> >
> > I usually run the Isis server from console : mvn antrun:run
> >
> >
> If you look in the generated webapp project there's a folder called
> ide/eclipse/launch. This contains a bunch of .launch configurations.
> They're just XML files, so if you look inside then you'll see that they
> call a class we provide called org.apache.isis.WebServer. This bootstraps
> the webapp inside a Jetty servlet container.
>
> So, to run Isis in debug mode, right click on one of those .launch files,
> and choose Debug.
>
> Martin's suggestion of using mvnDebug would also work, but I think the
> above is easier.
>
> Dan
>
>
>
> >
> > Thanks,
> > Dileepa
> >
> >
> > On Wed, Jul 9, 2014 at 12:12 PM, Dan Haywood <
> dan@haywood-associates.co.uk
> > >
> > wrote:
> >
> > > Run > Debug.
> > >
> > > I generally use the ide/eclipse/launch/xxx.launch file with
> > > --type=SERVER_PROTOTYPE to flip Isis into prototype mode too; this will
> > > render any @Prototype actions and also runs Wicket in DEVELOPMENT mode.
> > >
> > > Dan
> > >
> > >
> > >
> > > On 9 July 2014 07:38, Dileepa Jayakody <di...@gmail.com>
> > wrote:
> > >
> > > > Hi Devs,
> > > >
> > > > Can I please know how to start Isis server in debug mode?
> > > >
> > > > I need to debug from Eclipse.
> > > >
> > > > Thanks,
> > > > Dileepa
> > > >
> > >
> >
>
Re: How to start Isis in debug mode
Posted by Dan Haywood <da...@haywood-associates.co.uk>.
On 9 July 2014 08:08, Dileepa Jayakody <di...@gmail.com> wrote:
> Hi Dan,
>
> Can I run the server from console in debug mode? and connect the project
> from eclipse as a Remote application?
>
Yup.
>
> I usually run the Isis server from console : mvn antrun:run
>
>
If you look in the generated webapp project there's a folder called
ide/eclipse/launch. This contains a bunch of .launch configurations.
They're just XML files, so if you look inside then you'll see that they
call a class we provide called org.apache.isis.WebServer. This bootstraps
the webapp inside a Jetty servlet container.
So, to run Isis in debug mode, right click on one of those .launch files,
and choose Debug.
Martin's suggestion of using mvnDebug would also work, but I think the
above is easier.
Dan
>
> Thanks,
> Dileepa
>
>
> On Wed, Jul 9, 2014 at 12:12 PM, Dan Haywood <dan@haywood-associates.co.uk
> >
> wrote:
>
> > Run > Debug.
> >
> > I generally use the ide/eclipse/launch/xxx.launch file with
> > --type=SERVER_PROTOTYPE to flip Isis into prototype mode too; this will
> > render any @Prototype actions and also runs Wicket in DEVELOPMENT mode.
> >
> > Dan
> >
> >
> >
> > On 9 July 2014 07:38, Dileepa Jayakody <di...@gmail.com>
> wrote:
> >
> > > Hi Devs,
> > >
> > > Can I please know how to start Isis server in debug mode?
> > >
> > > I need to debug from Eclipse.
> > >
> > > Thanks,
> > > Dileepa
> > >
> >
>
Re: How to start Isis in debug mode
Posted by Dileepa Jayakody <di...@gmail.com>.
Hi Dan,
Can I run the server from console in debug mode? and connect the project
from eclipse as a Remote application?
I usually run the Isis server from console : mvn antrun:run
Thanks,
Dileepa
On Wed, Jul 9, 2014 at 12:12 PM, Dan Haywood <da...@haywood-associates.co.uk>
wrote:
> Run > Debug.
>
> I generally use the ide/eclipse/launch/xxx.launch file with
> --type=SERVER_PROTOTYPE to flip Isis into prototype mode too; this will
> render any @Prototype actions and also runs Wicket in DEVELOPMENT mode.
>
> Dan
>
>
>
> On 9 July 2014 07:38, Dileepa Jayakody <di...@gmail.com> wrote:
>
> > Hi Devs,
> >
> > Can I please know how to start Isis server in debug mode?
> >
> > I need to debug from Eclipse.
> >
> > Thanks,
> > Dileepa
> >
>
Re: How to start Isis in debug mode
Posted by Dan Haywood <da...@haywood-associates.co.uk>.
Run > Debug.
I generally use the ide/eclipse/launch/xxx.launch file with
--type=SERVER_PROTOTYPE to flip Isis into prototype mode too; this will
render any @Prototype actions and also runs Wicket in DEVELOPMENT mode.
Dan
On 9 July 2014 07:38, Dileepa Jayakody <di...@gmail.com> wrote:
> Hi Devs,
>
> Can I please know how to start Isis server in debug mode?
>
> I need to debug from Eclipse.
>
> Thanks,
> Dileepa
>